Security: Make password reset links expire after 60 minutes (#7715)

* Security: Make password reset links expire after 60 minutes

* Update app_languages.php

* Update app_defaults.php

* Update login.php
This commit is contained in:
Alex
2026-01-22 13:21:26 -07:00
committed by GitHub
parent bfcdf5a97a
commit 717846b397
3 changed files with 47 additions and 8 deletions

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2025
Portions created by the Initial Developer are Copyright (C) 2008-2026
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -137,7 +137,7 @@ if ($domains_processed == 1) {
$array['email_templates'][$x]['template_body'] .= "<body>\n";
$array['email_templates'][$x]['template_body'] .= "<center><a href='https://\${domain}'><img src='\${logo_full}' style='width: 200px; height: auto; border: none;'></a></center><br />\n";
$array['email_templates'][$x]['template_body'] .= "A password reset was just requested for the FusionPBX user account associated with this email address.<br /><br />\n";
$array['email_templates'][$x]['template_body'] .= "<b>If you submitted this request</b>, click the button below to begin the password reset process for your user account.<br /><br />";
$array['email_templates'][$x]['template_body'] .= "<b>If you submitted this request</b>, click the button below to begin the password reset process for your user account. This link expires in 60 minutes.<br /><br />";
$array['email_templates'][$x]['template_body'] .= "\${reset_button}<br /><br />\n";
$array['email_templates'][$x]['template_body'] .= "If you did not initiate this action, however, please ignore this message and your password will remain unchanged.\n";
$array['email_templates'][$x]['template_body'] .= "If you have questions or concerns regarding this email, please contact your system administrator.";
@@ -180,5 +180,3 @@ if ($domains_processed == 1) {
}
}
?>