Explorar el Código

增加密码过期机制

sandm hace 3 años
padre
commit
6e7a4e85f7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;