diff --git a/docroot/modules/user/user.pages.inc b/docroot/modules/user/user.pages.inc index d9ad3be..ca22611 100644 --- a/docroot/modules/user/user.pages.inc +++ b/docroot/modules/user/user.pages.inc @@ -112,8 +112,8 @@ 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. If a timeout hasn't been set defaults to 24 hours = 86400 seconds. + $timeout = variable_get('password_reset_timeout', 86400); $current = REQUEST_TIME; // Some redundant checks for extra security ? $users = user_load_multiple(array($uid), array('status' => '1'));