diff --git a/interface/web/login/index.php b/interface/web/login/index.php
index 3589f5644356b40733f3c841d61876a01114a3f8..bad948d83356c3dcd7dee70190687aa94c6a8978 100644
--- a/interface/web/login/index.php
+++ b/interface/web/login/index.php
@@ -92,6 +92,7 @@ function process_login_request(app $app, &$error, $conf, $module)
 	//* too many failed logins
 	if ($alreadyfailed['times'] > 5) {
 		$error = $app->lng('error_user_too_many_logins');
+		return;
 	} else {
 		if ($loginAs) {
 			$sql = "SELECT * FROM sys_user WHERE USERNAME = ? and PASSWORT = ?";