How to Create a Custom Login Module with OWS

By Paul Deschenes
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

comments or questionsIf you have any comments or questions for this tutorial, please ask them in this How to Create a Custom Login Module with OWS forum thread.


Recommended Tutorials:

R2i Open Web Studio (OWS) Module:
'How to Build a Public Knowledge Base with OWS'
How to Import the Configuration Source Code into Open Web Studio
An Introduction to R2i Open Web Studio – Part 1
How to Build Module Interfaces in Open Web Studio – Part 2
The User Search Interface in Open Web Studio - Part 3
Personalization, Text Editor, Logging and Reporting in Open Web Studio - Part 4
Debugging, Enhanced Reporting, Importing Records and Scheduling - Part 5
Making it Cool - Creating a Mashup - Part 6 of 6
How to Create an Email Form with OWS
How to Create an iPhone App with OWS
How to Create a Portal Signup Module with OWS
How to Create a Custom Login and Register Module with OWS
Working with File Action in Open Web Studio
Enhancing the OWS Login Module and Building a Twitter Module
Form Validation, Dependant Drop Downs and Data Level Security in OWS
How to Create an Installable DotNetNuke PA Module Using OWS
How to Create a Skin Object from an OWS Configuration
OWS Advanced Techniques: User Access and Security
Getting Started With jQuery UI in OWS

DotNetMushroom (DNM) Rapid Application Developer (RAD)
How to Build a News Application with DotNetMushroom RAD
How to Style a News Application Built with DotNetMushroom RAD
How to Implement Multi-Language Localization With DotNetMushroom RAD
Language Resource Files in DotNetMushroom RAD Applications
How to Implement Paging with DotNetMushroom RAD
How to Implement a News Carousel Using DotNetMushroom RAD and JQuery
New Features in DNM 01.20.00
How to Implement a DotNetNuke User Registration Module Using DNM RAD
Creating Charts Using DNM RAD 1.3 for DotNetNuke
Creating an Events Calendar for DotNetNuke using DotNetMushroom RAD
Working with Lists in DotNetMushroom RAD
Making use of the jsTree Control in DotNetMushroom RAD

Ifinity:
URL Master Module

OnyakTech:
SigmaLive Module
OnyakTech Host Commander Module

DNN Stuff:
Aggregator Module
Module Rotator

Markit Modules:
Slideshow Module
PageEar Module

Codeplex:
Monitter4DNN Twitter Module

Oliver Hine:
Advanced Optimized Control Panel

Maps:
GeoSprawl DotNetNuke Locator Module
ZLDNN Advanced Biz Map For DotNetNuke

Evotiva:
DNNBackup Module

Smith Consulting:
DotNetNuke Smith Shopping Cart

InteractiveWebs:
InteractiveWebs Advanced Login Module
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds