Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
de67926f
Commit
de67926f
authored
Sep 06, 2010
by
tbrehm
Browse files
Added events for login_failed and login_empty to the interface event system.
parent
3b4c2882
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/login/index.php
View file @
de67926f
...
...
@@ -176,11 +176,15 @@ class login_index {
//* Incorrect login - Username and password incorrect
$error
=
$app
->
lng
(
'error_user_password_incorrect'
);
if
(
$app
->
db
->
errorMessage
!=
''
)
$error
.
=
'<br />'
.
$app
->
db
->
errorMessage
!=
''
;
$app
->
plugin
->
raiseEvent
(
'login_failed'
,
$this
);
}
}
}
else
{
//* Username or password empty
if
(
$error
==
''
)
$error
=
$app
->
lng
(
'error_user_password_empty'
);
$app
->
plugin
->
raiseEvent
(
'login_empty'
,
$this
);
}
}
if
(
$error
!=
''
){
...
...
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