summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-11-17 17:16:45 +0000
committerChristian Fowler <spider@viovio.com>2006-11-17 17:16:45 +0000
commit1865a467ebc61a1096ea562d62baab0036699136 (patch)
treee758eb9769a584b7f9c9f407d3a06a38e03829c4
parent5071d16c16bc3cc0a24cd1ee718d06efca56c259 (diff)
downloadusers-1865a467ebc61a1096ea562d62baab0036699136.tar.gz
users-1865a467ebc61a1096ea562d62baab0036699136.tar.bz2
users-1865a467ebc61a1096ea562d62baab0036699136.zip
unset information if login failed
-rw-r--r--BitUser.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/BitUser.php b/BitUser.php
index 9de90fd..1771e53 100644
--- a/BitUser.php
+++ b/BitUser.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_users/BitUser.php,v 1.114 2006/11/15 18:25:48 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_users/BitUser.php,v 1.115 2006/11/17 17:16:45 spiderr Exp $
*
* Lib for user administration, groups and permissions
* This lib uses pear so the constructor requieres
@@ -12,7 +12,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: BitUser.php,v 1.114 2006/11/15 18:25:48 spiderr Exp $
+ * $Id: BitUser.php,v 1.115 2006/11/17 17:16:45 spiderr Exp $
* @package users
*/
@@ -40,7 +40,7 @@ define("ACCOUNT_DISABLED", -6);
* Class that holds all information for a given user
*
* @author spider <spider@steelsun.com>
- * @version $Revision: 1.114 $
+ * @version $Revision: 1.115 $
* @package users
* @subpackage BitUser
*/
@@ -750,6 +750,8 @@ return false;
$this->updateSession( $_COOKIE[$user_cookie_site] );
}
} else {
+ $this->mUserId = ANONYMOUS_USER_ID;
+ unset( $this->mInfo );
//vd( $this->mErrors );
$url = USERS_PKG_URL.'login.php?error=' . urlencode(tra('Invalid username or password'));
}