Преглед изворни кода

更新一些例外企业的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;