Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
don
Commits
7dc48ed2
Commit
7dc48ed2
authored
Nov 29, 2018
by
Okhin
Browse files
Fixing the issue with 401 error
parent
7ed60619
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/controller/admin.php
View file @
7dc48ed2
...
...
@@ -70,6 +70,7 @@ class Admin extends Controller
$success
=
$auth
->
basic
(
'\Controller\Admin::hash_password'
);
if
(
!
$success
)
{
$f3
->
push
(
'SESSION.error'
,
'Accès non autorisé'
);
$f3
->
push
(
'SESSION.message'
,
''
);
$f3
->
error
(
401
);
}
else
{
$f3
->
set
(
'SESSION.admin'
,
true
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment