--- class.tx_saltedpasswords_sv1.php 2011-02-26 00:20:46.000000000 +0100 +++ class.tx_saltedpasswords_sv1.php.new 2011-03-01 08:31:33.000000000 +0100 @@ -250,6 +250,9 @@ TYPO3_MODE . ' Authentication failed - wrong password for username \'%s\'', $this->login['uname'] ); + $this->pObj->writelog(255,3,3,1, + "Login-attempt from %s (%s), username '%s', password not accepted!", + Array($this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $this->login['uname'])); $OK = 0; } else if(!$validPasswd) { // Failed login attempt (wrong password) @@ -257,12 +260,18 @@ "Login-attempt from %s, username '%s', password not accepted!", $this->authInfo['REMOTE_ADDR'], $this->login['uname'] ); + $this->pObj->writelog(255,3,3,1, + "Login-attempt from %s (%s), username '%s', password not accepted!", + Array($this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $this->login['uname'])); } else if ($validPasswd && $user['lockToDomain'] && strcasecmp($user['lockToDomain'], $this->authInfo['HTTP_HOST'])) { // Lock domain didn't match, so error: $this->writeLog( "Login-attempt from %s, username '%s', locked domain '%s' did not match '%s'!", $this->authInfo['REMOTE_ADDR'], $this->login['uname'], $user['lockToDomain'], $this->authInfo['HTTP_HOST'] ); + $this->pObj->writelog(255,3,3,1, + "Login-attempt from %s (%s), username '%s', locked domain '%s' did not match '%s'!", + Array($this->authInfo['REMOTE_ADDR'], $this->authInfo['REMOTE_HOST'], $user[$this->db_user['username_column']], $user['lockToDomain'], $this->authInfo['HTTP_HOST'])); $OK = 0; } else if ($validPasswd) { $this->writeLog(