AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Groupware Usuario
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Checks the existence and validity of the password for a user of the user groupware.
Example
nRes is int = gpwCheckUser(Login, Password)
// If the login failed
IF nRes <> gpwOk THEN
       SWITCH nRes
               CASE gpwError: Error("Error while initializing the groupware.")
               CASE gpwUnknownUser: Error("Unknown user.")
               CASE gpwInvalidPassword: Error("Invalid password")
       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 correspond to the user password described in the database of user groupware.
gpwOKThe user is connected.
gpwUnknownUserThe user is unknown: it is not found in the database of user groupware.
<Login>: Character string
Username.
<Password>: Character string
Password associated with the user login.
Component: wd290gpu.dll
Versión mínima requerida
  • Versión 19
Comentarios
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 01 2017

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local