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-20 17:09:26 +01:00
parent 431cb4b7b4
commit 34296598d4
10 changed files with 72 additions and 37 deletions
+3 -3
View File
@@ -1506,8 +1506,8 @@ enabled_high, registration_date, registration_date_string, registration_date_sin
);
$service->addMethod(
'pwg.users.generateResetPasswordLink',
'ws_users_generate_reset_password_link',
'pwg.users.generatePasswordLink',
'ws_users_generate_password_link',
array(
'user_id' => array(
'type'=>WS_TYPE_ID
@@ -1522,7 +1522,7 @@ enabled_high, registration_date, registration_date_string, registration_date_sin
'Return the reset password link <br />
(Only webmaster can perform this action for another webmaster)',
$ws_functions_root . 'pwg.users.php',
array('admin_only'=>true)
array('admin_only'=>true, 'post_only'=>true)
);
$service->addMethod(