Commit 7dc48ed2 authored by okhin's avatar okhin 🚴

Fixing the issue with 401 error

parent 7ed60619
Pipeline #2298 passed with stages
in 1 minute and 18 seconds
...@@ -70,6 +70,7 @@ class Admin extends Controller ...@@ -70,6 +70,7 @@ class Admin extends Controller
$success = $auth->basic('\Controller\Admin::hash_password'); $success = $auth->basic('\Controller\Admin::hash_password');
if (!$success) { if (!$success) {
$f3->push('SESSION.error', 'Accès non autorisé'); $f3->push('SESSION.error', 'Accès non autorisé');
$f3->push('SESSION.message', '');
$f3->error(401); $f3->error(401);
} else { } else {
$f3->set('SESSION.admin', true); $f3->set('SESSION.admin', true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment