Commit de67926f authored by tbrehm's avatar tbrehm
Browse files

Added events for login_failed and login_empty to the interface event system.

parent 3b4c2882
......@@ -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 != ''){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment