aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2013-01-26 01:01:57 +0530
committerDhruv <dhruv.goel92@gmail.com>2013-04-25 20:39:50 +0530
commitc6e9bd13a75441e9b35a1bfa5d2a08cc38ff1fa5 (patch)
treeb4280d2b1befa5396deff44237be967e6a455c84 /phpBB/includes
parent5de14b940e71941853d3bb279779631ae75b9b6f (diff)
downloadforums-c6e9bd13a75441e9b35a1bfa5d2a08cc38ff1fa5.tar
forums-c6e9bd13a75441e9b35a1bfa5d2a08cc38ff1fa5.tar.gz
forums-c6e9bd13a75441e9b35a1bfa5d2a08cc38ff1fa5.tar.bz2
forums-c6e9bd13a75441e9b35a1bfa5d2a08cc38ff1fa5.tar.xz
forums-c6e9bd13a75441e9b35a1bfa5d2a08cc38ff1fa5.zip
[ticket/10325] trigger error if forgot password option disabled
PHPBB3-10325
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/ucp/ucp_remind.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_remind.php b/phpBB/includes/ucp/ucp_remind.php
index 8a7ba5d0ca..dd95c29def 100644
--- a/phpBB/includes/ucp/ucp_remind.php
+++ b/phpBB/includes/ucp/ucp_remind.php
@@ -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;