summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2008-10-16 09:57:58 +0000
committerMax Kremmel <xing@synapse.plus.com>2008-10-16 09:57:58 +0000
commit4d8106a25bf035b8ddda2933568ac3ed866eddf4 (patch)
tree7ad83f6babb6aba97add5f9d4cbded31706aea9d /auth
parent448834da5e2dd2163f1eaa85ce7e6ae748c0ee0c (diff)
downloadusers-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.php4
-rw-r--r--auth/multisites/auth.php8
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 ) {