浏览代码

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