Update of /cvsroot/phpslash/phpslash-dev/include/modules/auth/authtypes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29501
Modified Files:
slashAuthLDAP.class
Log Message:
attempts to log users in silently after successfully registering them in sql db
Index: slashAuthLDAP.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-dev/include/modules/auth/authtypes/slashAuthLDAP.class,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** slashAuthLDAP.class 29 Oct 2004 21:45:29 -0000 1.10
--- slashAuthLDAP.class 29 Oct 2004 21:57:54 -0000 1.11
***************
*** 186,190 ****
$ary['author_realname'] = $username; /* TODO get cn from LDAP */
$ary['password'] = $password;
- debug("password","old: $password. new: ".$ary['password']);
/** permissions TODO ask if this is right way? */
$perms = array('nobody'=>20,'user'=>21);
--- 186,189 ----
***************
*** 194,199 ****
/** loads $this->ary with whatever is needed to allow
propper authentication @see slashAuth::load_user_info() */
! $new_info = $this->load_user_info($ary);
debug("new_info",$new_info);
} else {
debug("user","Could not register authenticated user in SQL db");
--- 193,204 ----
/** loads $this->ary with whatever is needed to allow
propper authentication @see slashAuth::load_user_info() */
! $new_info = $this->get_psluser_info($username);
debug("new_info",$new_info);
+ /* silently login new user */
+ $this->auth["uid"] = $user_info['author_id'];
+ $this->auth["uname"] = $user_info['author_name'];
+ $this->auth["perm"] = $this->get_userperms($user_info['author_id']);
+ $this->auth["email"] = $user_info['email'];
+ $this->auth["realname"] = $user_info['realname'];
} else {
debug("user","Could not register authenticated user in SQL db");
|