Minor - format code

pull/3178/head
Julio Montoya 6 years ago
parent 8790c8ed1c
commit f096db8f51
  1. 8
      main/auth/lostPassword.php

@ -1,4 +1,5 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
@ -12,9 +13,8 @@
* to generate a new one. * to generate a new one.
* *
* @todo refactor, move relevant functions to code libraries * @todo refactor, move relevant functions to code libraries
*
* @package chamilo.auth
*/ */
require_once __DIR__.'/../inc/global.inc.php'; require_once __DIR__.'/../inc/global.inc.php';
// Custom pages // Custom pages
@ -22,7 +22,7 @@ require_once __DIR__.'/../inc/global.inc.php';
// already be some display output. // already be some display output.
// Forbidden to retrieve the lost password // Forbidden to retrieve the lost password
if (api_get_setting('allow_lostpassword') == 'false') { if (api_get_setting('allow_lostpassword') === 'false') {
api_not_allowed(true); api_not_allowed(true);
} }
@ -87,10 +87,8 @@ if ($allowCaptcha) {
$options $options
); );
$form->addElement('static', null, null, get_lang('ClickOnTheImageForANewOne')); $form->addElement('static', null, null, get_lang('ClickOnTheImageForANewOne'));
$form->addElement('text', 'captcha', get_lang('EnterTheLettersYouSee'), ['size' => 40]); $form->addElement('text', 'captcha', get_lang('EnterTheLettersYouSee'), ['size' => 40]);
$form->addRule('captcha', get_lang('EnterTheCharactersYouReadInTheImage'), 'required', null, 'client'); $form->addRule('captcha', get_lang('EnterTheCharactersYouReadInTheImage'), 'required', null, 'client');
$form->addRule('captcha', get_lang('TheTextYouEnteredDoesNotMatchThePicture'), 'CAPTCHA', $captcha_question); $form->addRule('captcha', get_lang('TheTextYouEnteredDoesNotMatchThePicture'), 'CAPTCHA', $captcha_question);
} }

Loading…
Cancel
Save