Check Account Activation

The Check Account Activation trigger A trigger is a SQL procedure that performs an action when a transaction (INSERT, UPDATE, DELETE) occurs. You can use triggers to perform validation of input data, to automatically generate a value for a newly inserted row, to read from other tables for cross-referencing purposes, or to support alerts through e-mail messages. checks if account activation A means of verifying that the account is real, by sending an e-mail with an activation link. is used and if the account to be activated is unique. It also checks whether or not the account has already been activated by someone else.

Generally, this trigger is automatically created by the User Registration Wizard or by the Create Activation Page server behavior A server behavior is a reusable component for server-side development. They add blocks of code to your pages for accomplishing specific tasks. Dreamweaver comes with several default server behaviors and the InterAKT extensions add many more to this list..

It is possible to manually create your own activation page with the Update Record Transaction and the Check Account Activation trigger (to check the activation status of a user before the update occurs). Both of these actions though can be performed simultaneously with the Create Activation Page server behavior.

Access the trigger from the Application panel, Server Behaviors -> + -> MX Kollection -> User Login -> Advanced -> Check Account Activation.

An example of the trigger interface can be seen below:

 

For instructions on completing this dialog box, see the Advanced tab. For the Check Account Activation trigger, by default the Priority is set to 1 and the Type is BEFORE, as it should execute before the transaction takes place.

 

Note: If you use this server behavior on the ColdFusion server model, a file named Application.cfm will be automatically generated in the site root folder. Do not delete this file, as it contains settings related to session variables used by the server behavior and the current application. If you remove this file or modify it, application pages that use sessions will not function properly.

Related Topics