|
|
|
|
|
gpwCheckUser (Function) In french: gpwVérifieUtilisateur Checks the existence and validity of the password for a user of the User Groupware. nRes is int = gpwCheckUser(Login, MotPasse)
IF nRes <> gpwOk THEN
SWITCH nRes
CASE gpwError : Error("Erreur à l'initialisation du groupware.")
CASE gpwUnknownUser : Error("Utilisateur inconnu.")
CASE gpwInvalidPassword : Error("Mot de passe invalide.")
END
EndProgram()
END
Syntax
<Result> = gpwCheckUser(<Login> , <Password>)
<Result>: Integer Result of the check: | | gpwError | An error occurred. To get more details on the error, use ErrorInfo. | gpwInvalidPassword | The user password is not valid. It does not match the user password described in the User Groupware database. | gpwOK | The user is logged in. | gpwUnknownUser | The user is unknown: it is not present in the User Groupware database. |
<Login>: Character string Username. <Password>: Character string Password associated with the username.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|