|
|
|
|
|
gpwAddUser (Function) In french: gpwAjouteUtilisateur Adds a user to the User Groupware database.
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
nRes is int = gpwAddUser(clUser)
SWITCH nRes
CASE gpwOk
Info("ok")
CASE gpwActivationByEmail
Info("Activation by email")
OTHER CASE
Info("Unable to add the user." + CR + ErrorInfo())
RETURN
END
SWITCH gpwActivateUser(clUser..Login)
CASE gpwActivationByEmail
PopupDisplay(POPUP_ValidateSubscription)
CASE gpwActivationImmediate
gpwConnectUser(clUser.Login, clUser.Password)
PopupDisplay(POPUP_ConfirmSubscription)
OTHER CASE
Info("Unable to activate the user." + CR + HErrorInfo())
END
Syntax
<Result> = gpwAddUser(<User>)
<Result>: Boolean or Integer constant
<User>: gpwUser variable Name of the gpwUser variable containing the information of the new user. Remarks Depending on the new user validation mode defined in the administration page, the user can be validated immediately or by email. gpwActivateUser activates the new user. Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|