mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 07:47:34 +02:00
[ticket/10325] trigger error if forgot password option disabled
PHPBB3-10325
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user