|
@@ -300,12 +300,14 @@ class AuthService
|
|
|
$user->utype,
|
|
|
2045
|
|
|
);
|
|
|
- if(count($pwdLog) >= 1){
|
|
|
- $log = reset($pwdLog);
|
|
|
+ $data = $pwdLog->toArray()['data'];
|
|
|
+ if(count($data) >= 1){
|
|
|
+ $log = array_shift($data);
|
|
|
$time = strtotime($log['created_at']);
|
|
|
}else{
|
|
|
$time = 0;
|
|
|
}
|
|
|
+
|
|
|
if((time()-$time)>7776000){
|
|
|
return false;
|
|
|
}else{
|