PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Adds a user into the database of user groupware.
Versions 22 and later
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
New in version 22
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
Example
// Values of the new user
clUser is gpwUser
clUser..Email = EDT_Email
clUser..Login = EDT_Login
clUser..Password = EDT_Password
clUser..LastName = EDT_LastName
clUser..FirstName = EDT_FirstName
clUser..PhoneNumber = EDT_Phone

// Add the user
IF gpwAddUser(clUser) = False THEN
Info("Unable to add the user." + CR + ErrorInfo())
RETURN
END

// Activate the user
SWITCH gpwActivateUser(clUser..Login)
// Activation by email
CASE gpwActivationByEmail
PopupDisplay(POPUP_ValidateSubscription)
// Immediate activation
CASE gpwActivationImmediate
// Connects the user directly
gpwConnectUser(clUser..Login, clUser..Password)
// Displays the confirmation popup
PopupDisplay(POPUP_ConfirmSubscription)
OTHER CASE
Info("Unable to activate the user." + CR + HErrorInfo())
END
Syntax
<Result> = gpwAddUser(<User>)
<Result>: Boolean
  • True if the user was added,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<User>: gpwUser variable
Name of the gpwUser variable containing the information about the user to add.
Remarks
Depending on the validation mode of new users configured in the management page, the user validation can be performed immediately or it can be done by email. gpwActivateUser is used to enable the added user.
Components
WINDEVWEBDEV - Server code wd230gpu.dll
Linux wd230gpu.so
Minimum required version
  • Version 19
Comments
Click [Add] to post a comment