From de67926f1bbc1f0310429af76c8c433db1a188f5 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 6 Sep 2010 10:28:36 +0000
Subject: [PATCH] Added events for login_failed and login_empty to the
 interface event system.

---
 interface/web/login/index.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/interface/web/login/index.php b/interface/web/login/index.php
index 22a1eac8a1..be91708f52 100644
--- a/interface/web/login/index.php
+++ b/interface/web/login/index.php
@@ -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 != ''){
-- 
GitLab