소스 검색

更新一些例外企业的90天密码机制

zmw 7 달 전
부모
커밋
0ea8adcd44
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Services/Auth/AuthService.php

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

@@ -329,7 +329,7 @@ class AuthService
             $time = 0;
         }
 
-        if((time()-$time)>7776000){
+        if($time > 0 && (time()-$time)>7776000){
             return false;
         }else{
             return true;