Skip to content

Commit

Permalink
bug(middleware)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadreza1388 committed Sep 11, 2024
1 parent 8861e6c commit 00a3280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Middleware/mvc/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public function before(): void
$result = $tokenCount->fetchAll();
$result = end($result)['token_count'];
if (intval($result) === 0) {
Flight::redirect("https://editor.salamlang.ir");
Flight::jsonHalt(["fwefwf"=>"fefe"]);
}
} else {
Flight::redirect("https://editor.salamlang.ir");
Flight::jsonHalt(["fwefwf"=>"fefe"]);
}
}
}

0 comments on commit 00a3280

Please sign in to comment.