diff --git a/typo3/sysext/sv/class.tx_sv_auth.php b/typo3/sysext/sv/class.tx_sv_auth.php
index 67cfa73edf3ee84805caa3718d77bf9a1ea2b373..92d4d4d08b568b8fb7928f5a230aa0ed6771556f 100644
--- a/typo3/sysext/sv/class.tx_sv_auth.php
+++ b/typo3/sysext/sv/class.tx_sv_auth.php
@@ -50,22 +50,53 @@ class tx_sv_auth extends tx_sv_authbase 	{
 	function getUser()	{
 		$user = FALSE;
 
-		if ($this->login['status']=='login' && $this->login['uident'])	{
+		if ($this->login['status'] == 'login') {
+			if ($this->login['uident']) {
 
-			$user = $this->fetchUserRecord($this->login['uname']);
+				$user = $this->fetchUserRecord($this->login['uname']);
 
-			if(!is_array($user)) {
-					// Failed login attempt (no username found)
-				$this->writelog(255,3,3,2,
-					"Login-attempt from %s (%s), username '%s' not found!!",
-					Array($this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $this->login['uname']));	// Logout written to log
+				if(!is_array($user)) {
+						// Failed login attempt (no username found)
+					$this->writelog(255, 3, 3, 2,
+						'Login-attempt from %s (%s), username \'%s\' not found!!',
+						array($this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $this->login['uname'])
+					);	// Logout written to log
+					t3lib_div::sysLog(
+						sprintf(
+							'Login-attempt from %s (%s), username \'%s\' not found!',
+							$this->authInfo['REMOTE_ADDR'],
+							$this->authInfo['REMOTE_HOST'],
+							$this->login['uname']
+						),
+						'Core',
+						0
+					);
+				} else {
+					if ($this->writeDevLog) {
+						t3lib_div::devLog(
+							'User found: ' . t3lib_div::arrayToLogString(
+								$user, array($this->db_user['userid_column'], $this->db_user['username_column'])
+							),
+							'tx_sv_auth'
+						);
+					}
+				}
+			} else {
+					// Failed Login attempt (no password given)
+				$this->writelog(255, 3, 3, 2,
+					'Login-attempt from %s (%s) for username \'%s\' with an empty password!',
+					array($this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $this->login['uname'])
+				);
 				t3lib_div::sysLog(
-					sprintf( "Login-attempt from %s (%s), username '%s' not found!", $this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $this->login['uname'] ),
+					sprintf(
+						'Login-attempt from %s (%s), for username \'%s\' with an empty password!',
+						$this->authInfo['REMOTE_ADDR'],
+						$this->authInfo['REMOTE_HOST'],
+						$this->login['uname']
+					),
 					'Core',
 					0
 				);
-			} else {
-				if ($this->writeDevLog) 	t3lib_div::devLog('User found: '.t3lib_div::arrayToLogString($user, array($this->db_user['userid_column'],$this->db_user['username_column'])), 'tx_sv_auth');
 			}
 		}
 		return $user;