mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02: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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user