소스 검색

增加密码过期机制

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;