ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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
Connects a user to the User Groupware.
Example
WEBDEV - Server code
// Connect the user
nReturnedValue is int = gpwConnectUser(EDT_Login, EDT_Password)
 
// If connection failure
IF nReturnedValue <> gpwOk THEN
SWITCH nReturnedValue
CASE gpwError: Error("Unable to connect.")
CASE gpwUnknownUser, gpwInvalidPassword:
Error("Invalid user or password.")
END
ELSE
// Connect as administrator
IF gpwGetUserInfo(gpwInfoSupervisor) THEN
// Opens the page for groupware management
gpwOpenConfiguration()
// Refreshes the page
ELSE
PageUse(MyPage..Name)
END
END
Syntax

Connect a user to the User Groupware Hide the details

<Result> = gpwConnectUser(<Login> , <Password>)
<Result>: Integer constant
Result of the connection:
gpwErrorAn error occurred. To get more details on the error, use ErrorInfo.
gpwInvalidPasswordThe user password is unknown.
gpwOKThe user was 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.

Connect an identified user to the User Groupware via an email address Hide the details

<Result> = gpwConnectUser(<User's email address>)
<Result>: Integer constant
Result of the connection:
gpwErrorAn error occurred. To get more details on the error, use ErrorInfo.
gpwInvalidPasswordThe user password is unknown.
gpwOKThe user was connected.
gpwUnknownUserThe user is unknown: it is not found in the database of user groupware.
<User's email address>: Character string
User email retrieved in an OpenID authentication (Email property of the OpenIDIdentity variable).
Business / UI classification: Neutral code
Component: wd280gpu.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Example ok
//SENHACRIPT = password in table GPU_User.password

// Connect the user
nReturnedValue is int = gpwConnectUser(LOGINUSER, SENHACRIPT)
// If connection failure
IF nReturnedValue <> gpwOk AND nReturnedValue <> 0
SWITCH nReturnedValue
CASE gpwError: Error("Unable to connect.")
CASE gpwUnknownUser, gpwInvalidPassword:
Error("Invalid user or password.")
END
ELSE IF nReturnedValue = gpwOk AND nReturnedValue = 0
// Connect as administrator
IF gpwGetUserInfo(gpwInfoSupervisor) = True
// Opens the page for groupware management
gpwOpenConfiguration()
// Refreshes the page
ELSE
PageUse(MyPage..Name)
END
END
BOLLER
25 Jan. 2017