diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-10-03 21:01:36 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-10-03 21:01:36 +0200 |
commit | 68c197fd6012b5435a29a288113b957e7957de59 (patch) | |
tree | 6d4ed0af33be2c0ef7aeaf666e13949364fe6248 /phpBB/includes/functions.php | |
parent | 1eed2f98c30210d02b8ca3bf5b167fae67dc64dd (diff) | |
parent | 3a443b56233c58df49d15861c1c4add996b7660b (diff) | |
download | forums-68c197fd6012b5435a29a288113b957e7957de59.tar forums-68c197fd6012b5435a29a288113b957e7957de59.tar.gz forums-68c197fd6012b5435a29a288113b957e7957de59.tar.bz2 forums-68c197fd6012b5435a29a288113b957e7957de59.tar.xz forums-68c197fd6012b5435a29a288113b957e7957de59.zip |
Merge pull request #5652 from marc1706/ticket/11327
[ticket/11327] Implement forgot password functionality via form
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 667aa2df19..e1f6fa3d1b 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2516,11 +2516,14 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa $s_hidden_fields = build_hidden_fields($s_hidden_fields); + /** @var \phpbb\controller\helper $controller_helper */ + $controller_helper = $phpbb_container->get('controller.helper'); + $login_box_template_data = array( 'LOGIN_ERROR' => $err, 'LOGIN_EXPLAIN' => $l_explain, - 'U_SEND_PASSWORD' => ($config['email_enable']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=sendpassword') : '', + 'U_SEND_PASSWORD' => ($config['email_enable']) ? $controller_helper->route('phpbb_ucp_forgot_password_controller') : '', 'U_RESEND_ACTIVATION' => ($config['require_activation'] == USER_ACTIVATION_SELF && $config['email_enable']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=resend_act') : '', 'U_TERMS_USE' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=terms'), 'U_PRIVACY' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=privacy'), |