constructor
jIAuthDriver
__construct
(array $params)
-
array
$params: driver parameters, written in the ini file of the auth plugin
change a user password
void
changePassword
(string $login, string $newpassword)
-
string
$login: the login of the user
-
string
$newpassword
creates a new user object, with some first data..
Careful : it doesn't create a user in a database for example. Just an object.
object the
createUserObject
(string $login, string $password)
-
string
$login: the user login
-
string
$password: the user password
return user data corresponding to the given login
object the
getUser
(string $login)
-
string
$login: the login of the user
construct the user list
array
getUserList
(string $pattern)
-
string
$pattern: '' for all users
Erase user data of the user $login
void
removeUser
(string $login)
-
string
$login: the login of the user to remove
store a new user.
It create the user in a database for example should be call after a call of createUser and after setting some of its properties...
void
saveNewUser
(object $user)
-
object
$user: the user data container
save updated data of a user
warning : should not save the password !
void
updateUser
(object $user)
-
object
$user: the user data container
verify that the password correspond to the login
object|false
verifyPassword
(string $login, string $password)
-
string
$login: the login of the user
-
string
$password: the password to test