1
0
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:
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;