Update of /cvsroot/phpslash/phpslash-dev/include/modules/auth/authtypes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32606
Modified Files:
slashAuthLDAP.class
Log Message:
works better. still double-login for newly registered users, but preauth works. seems like auth expired is set to a wrong number and this is why we have to relogin?
Index: slashAuthLDAP.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-dev/include/modules/auth/authtypes/slashAuthLDAP.class,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** slashAuthLDAP.class 29 Oct 2004 21:57:54 -0000 1.11
--- slashAuthLDAP.class 29 Oct 2004 22:12:34 -0000 1.12
***************
*** 196,209 ****
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");
$this->auth["error"] = pslgetText("Could not register authenticated user in SQL db");
}
- /*$this->auth['perms'] = $this->get_userperms($username);*/
return true;
} else {
--- 196,209 ----
debug("new_info",$new_info);
/* silently login new user */
! $this->auth["uid"] = $new_info['author_id'];
! $this->auth["uname"] = $new_info['author_name'];
! $this->get_userperms($new_info['author_id']);
! $this->auth["email"] = $new_info['email'];
! $this->auth["realname"] = $new_info['realname'];
! debug("auth",$this->auth);
} else {
debug("user","Could not register authenticated user in SQL db");
$this->auth["error"] = pslgetText("Could not register authenticated user in SQL db");
}
return true;
} else {
|