소스 검색

后台修改密码bug修复

xiaogang 3 년 전
부모
커밋
fb1e3195c8
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 1
      app/Http/Controllers/Api/AuthorizationsController.php
  2. 2 1
      config/auth.php

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

xqd
@@ -339,7 +339,6 @@ class AuthorizationsController extends Controller
                 throw new Exception("设置失败");
             }
 
-            return true;
             $res = $this->do_login($request->mobile,$request->password);
         }catch (\Exception $exception){
             return $this->response->errorForbidden($exception->getMessage());

+ 2 - 1
config/auth.php

xqd
@@ -37,8 +37,9 @@ return [
 
     'guards' => [
         'web' => [
-            'driver' => 'session',
+            'driver' => 'jwt',
             'provider' => 'users',
+            'hash' => false,
         ],
 
         'api' => [