|
|
|
|
@ -3304,10 +3304,10 @@ function api_not_allowed($print_headers = false, $message = null) |
|
|
|
|
// If the user has no user ID, then his session has expired |
|
|
|
|
$action = api_get_self().'?'.Security::remove_XSS($_SERVER['QUERY_STRING']); |
|
|
|
|
$action = str_replace('&', '&', $action); |
|
|
|
|
$form = new FormValidator('formLogin', 'post', $action, null, array('class'=>'form-stacked')); |
|
|
|
|
$form->addElement('text', 'login', null, array('placeholder' => get_lang('UserName'), 'class' => 'span3 autocapitalize_off')); //new |
|
|
|
|
$form->addElement('password', 'password', null, array('placeholder' => get_lang('Password'), 'class' => 'span3')); //new |
|
|
|
|
$form->addElement('style_submit_button', 'submitAuth', get_lang('LoginEnter'), array('class' => 'btn span3')); |
|
|
|
|
$form = new FormValidator('formLogin', 'post', $action, null, array(), FormValidator::LAYOUT_BOX_NO_LABEL); |
|
|
|
|
$form->addElement('text', 'login', null, array('placeholder' => get_lang('UserName'), 'class' => 'autocapitalize_off')); |
|
|
|
|
$form->addElement('password', 'password', null, array('placeholder' => get_lang('Password'))); |
|
|
|
|
$form->addButton('submitAuth', get_lang('LoginEnter'), '', 'primary'); |
|
|
|
|
|
|
|
|
|
// see same text in auth/gotocourse.php and main_api.lib.php function api_not_allowed (above) |
|
|
|
|
$content = Display::return_message(get_lang('NotAllowed'), 'error', false); |
|
|
|
|
|