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