Browse Source

developer登录不能的问题

LD 5 năm trước cách đây
mục cha
commit
bb38bd128d
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      app/Http/Controllers/Auth/LoginController.php

+ 4 - 2
app/Http/Controllers/Auth/LoginController.php

@@ -68,12 +68,14 @@ class LoginController extends Controller
         }
 
         if ($this->attemptLogin($request)) {
-            $this->log(__METHOD__,__FUNCTION__,'',Auth::user()['id']);
+            if(env('DB_USERNAME')!='developer')
+                $this->log(__METHOD__,__FUNCTION__,'',Auth::user()['id']);
             return $this->sendLoginResponse($request);
         }
 
         $this->incrementLoginAttempts($request);
-        $this->log(__METHOD__,__FUNCTION__,'',Auth::user()['id']);
+        if(env('DB_USERNAME')!='developer')
+            $this->log(__METHOD__,__FUNCTION__,'',Auth::user()['id']);
         return $this->sendFailedLoginResponse($request);
     }
 }