interface for auth drivers
| package |
jelix |
|---|---|
| subpackage |
auth |
| static |
__construct(array $params)
arraydriver parameters, written in the ini file of the auth plugin
changePassword(string $login, string $newpassword)
stringthe login of the user
string
createUserObject(string $login, string $password) : object
. Careful : it doesn't create a user in a database for example. Just an object.
stringthe user login
stringthe user password
objectthe returned object depends on the driver
getUser(string $login) : object
stringthe login of the user
objectthe user data container
getUserList(string $pattern) : array
string'' for all users
arrayarray of user object
removeUser(string $login)
stringthe login of the user to remove
saveNewUser(object $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...
objectthe user data container
updateUser(object $user)
objectthe user data container
verifyPassword(string $login, string $password) : object|false
stringthe login of the user
stringthe password to test
object|false