File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
app/code/Magento/Customer/Model Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1286,6 +1286,8 @@ public function changeResetPasswordLinkToken($passwordLinkToken)
1286
1286
* Check if current reset password link token is expired
1287
1287
*
1288
1288
* @return boolean
1289
+ * @deprecated
1290
+ * @see \Magento\Customer\Model\AccountManagement::isResetPasswordLinkTokenExpired
1289
1291
*/
1290
1292
public function isResetPasswordLinkTokenExpired ()
1291
1293
{
@@ -1304,12 +1306,9 @@ public function isResetPasswordLinkTokenExpired()
1304
1306
return true ;
1305
1307
}
1306
1308
1307
- $ dayDifference = floor (($ currentTimestamp - $ tokenTimestamp ) / (24 * 60 * 60 ));
1308
- if ($ dayDifference >= $ expirationPeriod ) {
1309
- return true ;
1310
- }
1311
-
1312
- return false ;
1309
+ $ hourDifference = floor (($ currentTimestamp - $ tokenTimestamp ) / (60 * 60 ));
1310
+
1311
+ return $ hourDifference >= $ expirationPeriod ;
1313
1312
}
1314
1313
1315
1314
/**
You can’t perform that action at this time.
0 commit comments