|
|
|
|
|
gpwActivateUser (Function) In french: gpwActiveUtilisateur Validates a new user in the User Groupware database by activating the user. Depending on the new user validation mode defined on the administration page, you can: - send an email to the user asking them to click a link to validate their subscription,
- validate the user directly.
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
IF gpwAddUser(clUser) = False THEN
Info("Unable to add the user.")
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.")
END
Syntax
<Result> = gpwActivateUser(<Identifier>)
<Result>: Integer constant Activation result: | | gpwActivationByEmail | The user is activated by email. An email is automatically sent (the email characteristics are defined in the administration page). | gpwActivationImmediate | The user is immediately activated. | gpwError | Activation error. |
<Identifier>: Character string Username or user's email address. Business / UI classification: Neutral code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|