Переглянути джерело

后台修改密码bug修复

xiaogang 3 роки тому
батько
коміт
fb1e3195c8

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

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

+ 2 - 1
config/auth.php

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