浏览代码

增加密码过期机制

sandm 3 年之前
父节点
当前提交
6e7a4e85f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/Auth/AuthService.php

+ 1 - 1
app/Services/Auth/AuthService.php

@@ -301,7 +301,7 @@ class AuthService
             2045
         );
         if(count($pwdLog) >= 1){
-            $log = array_shift($pwdLog);
+            $log = reset($pwdLog);
             $time = strtotime($log->created_at);
         }else{
             $time = 0;