[ticket/10325] trigger error if forgot password option disabled

PHPBB3-10325
This commit is contained in:
Dhruv 2013-01-26 01:01:57 +05:30
parent 5de14b940e
commit c6e9bd13a7
2 changed files with 6 additions and 0 deletions

View file

@ -29,6 +29,11 @@ class ucp_remind
global $config, $phpbb_root_path, $phpEx;
global $db, $user, $auth, $template;
if (!$config['allow_forgot_password'])
{
trigger_error('UCP_FORGOT_PASSWORD_DISABLE');
}
$username = request_var('username', '', true);
$email = strtolower(request_var('email', ''));
$submit = (isset($_POST['submit'])) ? true : false;

View file

@ -521,6 +521,7 @@ $lang = array_merge($lang, array(
'UCP_USERGROUPS_MEMBER' => 'Edit memberships',
'UCP_USERGROUPS_MANAGE' => 'Manage groups',
'UCP_FORGOT_PASSWORD_DISABLE' => 'Function has been disabled.',
'UCP_REGISTER_DISABLE' => 'Creating a new account is currently not possible.',
'UCP_REMIND' => 'Send password',
'UCP_RESEND' => 'Send activation email',