Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
a6fbda7e
Commit
a6fbda7e
authored
Jan 30, 2019
by
Côme Chilliet
Browse files
🚑
fix(login) Fix error message display in Form login
issue
#5778
parent
a74726b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/login/class_LoginPost.inc
View file @
a6fbda7e
...
...
@@ -36,9 +36,6 @@ class LoginPost extends LoginMethod
static
::
init
();
/* Reset error messages */
$message
=
''
;
$smarty
->
assign
(
'focusfield'
,
'username'
);
if
((
$_SERVER
[
'REQUEST_METHOD'
]
==
'POST'
)
&&
isset
(
$_POST
[
'login'
])
&&
isset
(
$_POST
[
'username'
])
&&
isset
(
$_POST
[
'password'
]))
{
...
...
@@ -70,9 +67,11 @@ class LoginPost extends LoginMethod
static
protected
function
displayLogin
()
{
global
$smarty
,
$message
,
$config
,
$ssl
,
$error_collector
,
$error_collector_mailto
;
$lang
=
session
::
global_get
(
'lang'
);
error_reporting
(
E_ALL
|
E_STRICT
);
/* Fill template with required values */
$username
=
''
;
if
(
isset
(
$_POST
[
'username'
]))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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