afa пре 5 месеци
родитељ
комит
047a64c7ee
1 измењених фајлова са 1 додато и 1 уклоњено
  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);
     }
 }