afa il y a 5 mois
Parent
commit
047a64c7ee
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/api/service/auth/MysqlAdapter.php

+ 1 - 1
app/api/service/auth/MysqlAdapter.php

@@ -48,7 +48,7 @@ class MysqlAdapter
     public static function logout(int $uid)
     {   
         $token = request()->header('token');
-        UserToken::where('$token', $token)->delete();
+        UserToken::where('token', $token)->delete();
         Cache::delete('user_info_'.$uid);
     }
 }