(cp 34296598d) fixes #2281 add two default conf for reset and activation link

When a password activation or reset link is generated, the link expiry time is now defined in two conf: $conf[’password_reset_duration‘] with a default time of one hour and $conf[’password_activation_duration‘] with a default time of 72 hours.
This commit is contained in:
Linty
2024-11-25 11:29:39 +01:00
parent 668104d1c7
commit 502ef05df4
10 changed files with 72 additions and 37 deletions
+8
View File
@@ -599,6 +599,14 @@ $conf['browser_language'] = true;
// If false it'll be redirected from index.php to identification.php
$conf['guest_access'] = true;
// password_reset_duration : defines the validity duration (in seconds) of a
// password reset link. Default value is one hour (3600 seconds).
$conf['password_reset_duration'] = 60*60;
// password_activation_duration : defines the validity duration (in seconds)
// of an password activation link. Default value is 72 hours (259200 seconds).
$conf['password_activation_duration'] = 3*24*60*60;
// +-----------------------------------------------------------------------+
// | history |
// +-----------------------------------------------------------------------+