Fixed generation of API key by user

skala
Yannick Warnier 12 years ago
parent c3f859bebd
commit 0a02f58b00
  1. 4
      main/auth/profile.php

@ -282,7 +282,7 @@ if (api_get_setting('profile', 'apikeys') == 'true') {
$form->addElement('html', '<div id="div_api_key">');
$form->addElement('text', 'api_key_generate', get_lang('MyApiKey'), array('size' => 40, 'id' => 'id_api_key_generate'));
$form->addElement('html', '</div>');
$form->addElement('button', 'generate_api_key', get_lang('GenerateApiKey'), array('id' => 'id_generate_api_key', 'onclick' => 'generate_open_id_form()')); //generate_open_id_form()
$form->addElement('button', 'generate_api_key', get_lang('GenerateApiKey'), array('id' => 'id_generate_api_key', 'onclick' => 'generate_open_id_form(); return false;')); //generate_open_id_form()
}
// SUBMIT
if (is_profile_editable()) {
@ -727,4 +727,4 @@ if (api_get_setting('allow_social_tool') == 'true') {
echo '</div>';
$form->display();
}
Display :: display_footer();
Display :: display_footer();

Loading…
Cancel
Save