diff --git a/forgotPassword.php b/forgotPassword.php index cd2dd95184669556bd98b14ee46d6e48dd1ae1ed..27b73b4749aca63ba91c15cab365a15a548bb2fe 100644 --- a/forgotPassword.php +++ b/forgotPassword.php @@ -42,7 +42,7 @@ if (isset($_REQUEST['username']) && isset($_REQUEST['emailId'])) { You recently requested a password reset for your VtigerCRM Open source Account.<br> To create a new password, click on the link <a target="_blank" href='.$trackURL.'>here</a>. <br><br> - This request was made on '.date("Y-m-d H:i:s").' and will expire in next 24 hours.<br><br> + This request was made on '.date("Y-m-d H:i:s").' and will expire in next 1 hour.<br><br> Regards,<br> VtigerCRM Open source Support Team.<br>'; diff --git a/modules/Users/handlers/ForgotPassword.php b/modules/Users/handlers/ForgotPassword.php index ccbb03082f348733dda89dd598bddb4e4b042674..8b8e0d586773ed63a76c8d55bf1d404c1e9a1d64 100644 --- a/modules/Users/handlers/ForgotPassword.php +++ b/modules/Users/handlers/ForgotPassword.php @@ -27,7 +27,7 @@ class Users_ForgotPassword_Handler { $viewer->assign('USERNAME', $userName); $changePasswordTrackUrl = $site_URL."/modules/Users/actions/ForgotPassword.php"; - $expiryTime = (int)$request->get('time')+(24*60*60); + $expiryTime = (int)$request->get('time')+(60*60); $currentTime = time(); if($expiryTime > $currentTime) { $secretToken = uniqid();