xiaogang 4 年之前
父节点
当前提交
8a9878c405
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/Http/Controllers/Api/AuthorizationsController.php

+ 2 - 0
app/Http/Controllers/Api/AuthorizationsController.php

xqd
@@ -122,6 +122,8 @@ class AuthorizationsController extends Controller
             if (!$user=User::query()->where(['mobile' => $mobile,'is_distory'=>0])->whereNull('deleted_at')->first()) {
                 throw new Exception("用户不存在");
             }
+            file_put_contents('login_log.log',date("Y-m-d H:i:s").var_export($user->toArray(),true).PHP_EOL,FILE_APPEND);
+
             $credentials = ['mobile'=>$mobile,'password'=>$password];
 
             if (!auth('api')->attempt($credentials)) {