This is the main class for authentification process
Located in /auth/jAuth.class.php (line 27)
change a user password
Create a new user object
You should call this method if you want to create a new user. It returns an object, representing a user. Then you should fill its properties and give it to the saveNewUser method.
return the value of a parameter of the configuration of the current driver
generate a password with random letter or number
load user data
This method returns an object, generated by the driver, and which contains data corresponding to the given login. This method should be called if you want to update data of a user. see updateUser method.
construct the user list
return the user stored in the php session
Check if persistant session is enabled in config
Load the configuration of authentification, stored in the auth plugin config
authentificate a user, and create a user in the php session
remove a user send first AuthCanRemoveUser event, then if ok, send AuthRemoveUser and then remove the user.
Save a new user
if the saving has succeed, a AuthNewUser event is sent The given object should have been created by calling createUserObject method :
example :
$user = jAuth::createUserObject('login','password'); $user->email ='bla@foo.com'; jAuth::saveNewUser($user);the type of $user depends of the driver, so it can have other properties.
update user data
It send a AuthUpdateUser event if the saving has succeed. If you want to change the user password, you must use jAuth::changePassword method instead of jAuth::updateUser method.
The given object should have been created by calling getUser method. Example :
$user = jAuth::getUser('login'); $user->email ='bla@foo.com'; jAuth::updateUser($user);the type of $user depends of the driver, so it can have other properties.
verify that the password correspond to the login
Documentation generated on Thu, 19 Sep 2013 00:02:21 +0200 by phpDocumentor 1.4.3