Przeglądaj źródła

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

zmw 6 miesięcy temu
rodzic
commit
0ea8adcd44
1 zmienionych plików z 1 dodań i 1 usunięć
  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;