January 2010
In this tutorial we demonstrate how to create a Custom Login and Registration module using Open Web Studio.
The benefit of creating a custom login module is that it allows you to do custom processing, not only after login, but also on registration. This allows you to perform any database, or user actions that you require after login and after registration, that are not traditionally supported using the DotNetNuke default login and registration modules.
We walk you through how to create a custom login module, how to test for successful login, display messages and redirect to a page on successful login. We show you how to create your own custom registration form, how to create a 'confirm password' option, how to test for successful completion of the form, as well as how to assign security roles to a user upon successful registration.
You can download the latest version of OWS from here:
www.openwebstudio.com
If you are new to OWS we recommend you first of all view the six part series on
How to Build a Knowledge Base Article Module.
The videos contain:
Video 1 - Introduction, Initial Configuration of OWS Login Module
- Introduction, the login page
- Adding an OWS module to the page
- How to configure the general settings for the OWS login module
- NoQuery template HTML for the username and password
- Configuring the OWS module to use the login
- How to create a new region to test login actions
- How to configure an assignment action to perform login actions
- How to test the login result and display messages based on successful / unsuccessful login
Time Length: 8min 50secs
Video 2 - Testing for Successful Login, Displaying Messages, Redirecting to a Page
- How to test and display a message for locked out user, username not found, bad password, not authorized
- How to set debugging for all users
- How to display the login module only to unauthenticated users
- Testing the login module
- Viewing the debug log
- How to set the login form variable to an action variable
- How to display a message when a user successfully logs in
- How to refresh the page or redirect to another page when a user logs in
Time Length: 8min 58secs
Video 3 - How to Create a User Registration Form
- How to add a register link to the login module
- How to create a registration form
- Viewing Profile Properties to see which properties are required
- How to create a register action link
- How to test the 'password and 'confirm password' values are equal and display a message
- How to add the registration user variable assignments
Time Length: 7min 42secs
Video 4 - Testing for Successful Registration, Assigning Security Roles, Displaying Messages
- User info assignments, including portal and security role assignments
- How to test that a user was created successfully
- How to display a message to the user when they register, dependant on the portal registration settings
- Testing the registration form
- Viewing the debug log, identifying errors
- Re-ordering the assignment variables
- How to assign a security role to a registered user
- Viewing the debug log
- How to remove debugging for all users
Time Length: 8min 8secs
Total Time Length: 33min 38secs
Comments