mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
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:
@@ -76,11 +76,11 @@ function process_password_request()
|
||||
return false;
|
||||
}
|
||||
|
||||
$generate_link = generate_reset_password_link($user_id);
|
||||
$generate_link = generate_password_link($user_id);
|
||||
|
||||
$userdata['activation_key'] = $generate_link['activation_key'];
|
||||
// $userdata['activation_key'] = $generate_link['activation_key'];
|
||||
|
||||
$email_params = pwg_generate_reset_password_mail($userdata['username'], $generate_link['reset_password_link'], $conf['gallery_title']);
|
||||
$email_params = pwg_generate_reset_password_mail($userdata['username'], $generate_link['password_link'], $conf['gallery_title'], $generate_link['time_validation']);
|
||||
|
||||
if (pwg_mail($userdata['email'], $email_params))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user