diff options
author | David Rothstein <drothstein@gmail.com> | 2012-07-30 01:10:01 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2012-07-30 01:10:01 -0400 |
commit | 14b23a6e29883c12746b3233116a68b1d0f11f05 (patch) | |
tree | e89c7712ee265b7a53568e7714ba113dbafdf300 /modules/user/user.pages.inc | |
parent | 5a76cc4bbe9b31947ec45d9dff58e3390626adee (diff) | |
download | brdo-14b23a6e29883c12746b3233116a68b1d0f11f05.tar.gz brdo-14b23a6e29883c12746b3233116a68b1d0f11f05.tar.bz2 |
Issue #246029 by zserno, rjgoldsborough, blisteringherb, rfay, Alan Evans, kgoel | izmeez: Added Use a variable for the timeout/expiration of user password reset links.
Diffstat (limited to 'modules/user/user.pages.inc')
-rw-r--r-- | modules/user/user.pages.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/user/user.pages.inc b/modules/user/user.pages.inc index dc696d7fd..c4b68b9f6 100644 --- a/modules/user/user.pages.inc +++ b/modules/user/user.pages.inc @@ -113,8 +113,9 @@ function user_pass_reset($form, &$form_state, $uid, $timestamp, $hashed_pass, $a drupal_goto(); } else { - // Time out, in seconds, until login URL expires. 24 hours = 86400 seconds. - $timeout = 86400; + // Time out, in seconds, until login URL expires. Defaults to 24 hours = + // 86400 seconds. + $timeout = variable_get('user_password_reset_timeout', 86400); $current = REQUEST_TIME; // Some redundant checks for extra security ? $users = user_load_multiple(array($uid), array('status' => '1')); |