mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 02:03:18 +02:00
fixes GHSA-9986-w7jf-33f6 and fixes GHSA-9986-w7jf-33f6
* Introduces a verification code step before generating password reset links. * New configuration "password_reset_code_duration". * Adds Base32, TOTP and PHPQRCode classes . * New section is required in password.tpl: code verification won't work on themes not updated yet. * 5 new language strings were added.
This commit is contained in:
@@ -635,6 +635,11 @@ $conf['password_reset_duration'] = 60*60;
|
||||
// of an password activation link. Default value is 72 hours (259200 seconds).
|
||||
$conf['password_activation_duration'] = 3*24*60*60;
|
||||
|
||||
// password_reset_code_duration: defines the validity duration (in seconds)
|
||||
// for the verification code sent before genrating the reset link.
|
||||
// Default value is 5 minutes (max = 15 minutes)
|
||||
$conf['password_reset_code_duration'] = 5 * 60;
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | history |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user