ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / User Groupware functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Checks the existence and validity of the password for a user of the User Groupware.
Example
nRes is int = gpwCheckUser(Login, MotPasse)
// Si le login a échoué
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:
gpwErrorAn error occurred. To get more details on the error, use ErrorInfo.
gpwInvalidPasswordThe user password is not valid. It does not match the user password described in the User Groupware database.
gpwOKThe user is logged in.
gpwUnknownUserThe user is unknown: it is not present in the User Groupware database.
<Login>: Character string
Username.
<Password>: Character string
Password associated with the username.
Component: wd300gpu.dll
Minimum version required
  • Version 19
Comments
GpwCheckUser Detail
//verifica login
nRes is int = gpwCheckUser(LOGINUSER, SENHACRIPT)

// If the login failed
IF nRes <> gpwOk and nRes <> 0

SWITCH nRes
//1
CASE gpwError: Error("Error while initializing the groupware.")
//2
CASE gpwUnknownUser: Error("Unknown user.")
//3
CASE gpwInvalidPassword: Error("Invalid password")
END

EndProgram() // erro

ELSE IF nRes = gpwOk and nRes = 0

Info("ok = gpwok")

END
BOLLER
25 Jan. 2017

Last update: 03/28/2025

Send a report | Local help