mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 04:48:53 +00:00
[ticket/10325] trigger error if forgot password option disabled
PHPBB3-10325
This commit is contained in:
parent
5de14b940e
commit
c6e9bd13a7
2 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,11 @@ class ucp_remind
|
||||||
global $config, $phpbb_root_path, $phpEx;
|
global $config, $phpbb_root_path, $phpEx;
|
||||||
global $db, $user, $auth, $template;
|
global $db, $user, $auth, $template;
|
||||||
|
|
||||||
|
if (!$config['allow_forgot_password'])
|
||||||
|
{
|
||||||
|
trigger_error('UCP_FORGOT_PASSWORD_DISABLE');
|
||||||
|
}
|
||||||
|
|
||||||
$username = request_var('username', '', true);
|
$username = request_var('username', '', true);
|
||||||
$email = strtolower(request_var('email', ''));
|
$email = strtolower(request_var('email', ''));
|
||||||
$submit = (isset($_POST['submit'])) ? true : false;
|
$submit = (isset($_POST['submit'])) ? true : false;
|
||||||
|
|
|
@ -521,6 +521,7 @@ $lang = array_merge($lang, array(
|
||||||
'UCP_USERGROUPS_MEMBER' => 'Edit memberships',
|
'UCP_USERGROUPS_MEMBER' => 'Edit memberships',
|
||||||
'UCP_USERGROUPS_MANAGE' => 'Manage groups',
|
'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_REGISTER_DISABLE' => 'Creating a new account is currently not possible.',
|
||||||
'UCP_REMIND' => 'Send password',
|
'UCP_REMIND' => 'Send password',
|
||||||
'UCP_RESEND' => 'Send activation email',
|
'UCP_RESEND' => 'Send activation email',
|
||||||
|
|
Loading…
Add table
Reference in a new issue