diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2008-10-16 09:57:58 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2008-10-16 09:57:58 +0000 |
| commit | 4d8106a25bf035b8ddda2933568ac3ed866eddf4 (patch) | |
| tree | 7ad83f6babb6aba97add5f9d4cbded31706aea9d /auth | |
| parent | 448834da5e2dd2163f1eaa85ce7e6ae748c0ee0c (diff) | |
| download | users-4d8106a25bf035b8ddda2933568ac3ed866eddf4.tar.gz users-4d8106a25bf035b8ddda2933568ac3ed866eddf4.tar.bz2 users-4d8106a25bf035b8ddda2933568ac3ed866eddf4.zip | |
massive code cleanup, added docs, renamed methods to have consistent camelCaps naming, moved unused methods to bottom of file with deprecated message.
Diffstat (limited to 'auth')
| -rw-r--r-- | auth/bit/auth.php | 4 | ||||
| -rw-r--r-- | auth/multisites/auth.php | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/auth/bit/auth.php b/auth/bit/auth.php index e100fa3..33409eb 100644 --- a/auth/bit/auth.php +++ b/auth/bit/auth.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/auth/bit/auth.php,v 1.6 2007/06/30 02:34:53 spiderr Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/auth/bit/auth.php,v 1.7 2008/10/16 09:57:58 squareing Exp $ * * @package users */ @@ -74,7 +74,7 @@ class BitAuth extends BaseAuth { //print("response : $response<br/>"); if ($response == md5( strtolower($user) . $hash . $_SESSION["challenge"]) ) { $ret = USER_VALID; - $this->update_lastlogin( $userId ); + $this->updateLastLogin( $userId ); } else { $this->mErrors[] = 'Invalid challenge'; $ret=PASSWORD_INCORRECT; diff --git a/auth/multisites/auth.php b/auth/multisites/auth.php index 46c67a4..d2b3aa8 100644 --- a/auth/multisites/auth.php +++ b/auth/multisites/auth.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_users/auth/multisites/auth.php,v 1.2 2008/08/12 14:18:13 lsces Exp $ + * $Header: /cvsroot/bitweaver/_bit_users/auth/multisites/auth.php,v 1.3 2008/10/16 09:57:58 squareing Exp $ * * @package users */ @@ -92,7 +92,7 @@ class MultisitesAuth extends BaseAuth { //print("response : $response<br/>"); if ($response == md5( strtolower($user) . $hash . $_SESSION["challenge"]) ) { $ret = USER_VALID; - $this->update_lastlogin( $userId ); + $this->updateLastLogin( $userId ); } else { $this->mErrors[] = 'Invalid challenge'; $ret=PASSWORD_INCORRECT; @@ -109,13 +109,13 @@ class MultisitesAuth extends BaseAuth { function canManageAuth() { global $gBitSystem; if( $gBitSystem->isPackageActive( 'multisites' ) ) { return true; - } else { return false; } + } else { return false; } } function isSupported() { global $gBitSystem; if( $gBitSystem->isPackageActive( 'multisites' ) ) { return true; - } else { return false; } + } else { return false; } } function createUser( &$pUserHash ) { |
