Explorar el Código

后台修改密码bug修复

xiaogang hace 3 años
padre
commit
fb1e3195c8
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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' => [