Skip to content
Snippets Groups Projects
Commit 21e99c1e authored by Mladen B.'s avatar Mladen B.
Browse files

Refactor process_login_request 6: Explicit return statement.

parent a8ec0a15
No related branches found
No related tags found
1 merge request!1544Added admin IP whitelist feature
...@@ -92,6 +92,7 @@ function process_login_request(app $app, &$error, $conf, $module) ...@@ -92,6 +92,7 @@ function process_login_request(app $app, &$error, $conf, $module)
//* too many failed logins //* too many failed logins
if ($alreadyfailed['times'] > 5) { if ($alreadyfailed['times'] > 5) {
$error = $app->lng('error_user_too_many_logins'); $error = $app->lng('error_user_too_many_logins');
return;
} else { } else {
if ($loginAs) { if ($loginAs) {
$sql = "SELECT * FROM sys_user WHERE USERNAME = ? and PASSWORT = ?"; $sql = "SELECT * FROM sys_user WHERE USERNAME = ? and PASSWORT = ?";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment