Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

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

0 comments on commit 1c11f39

Please sign in to comment.