diff options
| author | Christian Fowler <spider@viovio.com> | 2006-07-23 04:44:06 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-07-23 04:44:06 +0000 |
| commit | bf0a08477eb4a80c0fc44d7a5e270feab5def5d4 (patch) | |
| tree | 653f5f505ef8cb0ffe0aed370cf4044311c86de5 /auth | |
| parent | 81117a15bc280d13082cb2cbe2394802a91a868c (diff) | |
| download | users-bf0a08477eb4a80c0fc44d7a5e270feab5def5d4.tar.gz users-bf0a08477eb4a80c0fc44d7a5e270feab5def5d4.tar.bz2 users-bf0a08477eb4a80c0fc44d7a5e270feab5def5d4.zip | |
big cleanup in registration/auth. converted auth plugins to directories to permit integration with foreign CVS repo's, and all genericized to allow arbitrary plugin creation by creating a new directory: yahoo/auth.php.\n clean up of session login during registration
Diffstat (limited to 'auth')
| -rw-r--r-- | auth/bit/auth.php (renamed from auth/bit_auth.php) | 15 | ||||
| -rw-r--r-- | auth/imap/auth.php (renamed from auth/imap_auth.php) | 0 | ||||
| -rw-r--r-- | auth/ldap/auth.php (renamed from auth/ldap_auth.php) | 0 |
3 files changed, 7 insertions, 8 deletions
diff --git a/auth/bit_auth.php b/auth/bit/auth.php index 4ea625b..175b9a3 100644 --- a/auth/bit_auth.php +++ b/auth/bit/auth.php @@ -84,14 +84,13 @@ class BitAuth extends BaseAuth { return true; } - function createUser(&$userattr) { + function createUser( &$pUserHash ) { //$authUserInfo = array( 'login' => $instance->mInfo['login'], 'password' => $instance->mInfo['password'], 'real_name' => $instance->mInfo['real_name'], 'email' => $instance->mInfo['email'] ); - if (empty($userattr["email"])) { - $userattr["email"] = $userattr["login"]; + $u = new BitPermUser(); +//vd( $pUserHash ); die; + if( $u->store( $pUserHash ) ) { + $this->mErrors = array_merge($this->mErrors,$u->mErrors); } - $u = new BitUser(); - $res = $u->store( $userattr ); - $this->mErrors = array_merge($this->mErrors,$u->mErrors); - return $res; + return $u->mUserId; } -}
\ No newline at end of file +} diff --git a/auth/imap_auth.php b/auth/imap/auth.php index 951c1fa..951c1fa 100644 --- a/auth/imap_auth.php +++ b/auth/imap/auth.php diff --git a/auth/ldap_auth.php b/auth/ldap/auth.php index da14bac..da14bac 100644 --- a/auth/ldap_auth.php +++ b/auth/ldap/auth.php |
