How to Create a Custom Login Module with OWS - Issue 52
Last Post 09/24/2012 9:48 AM by Joseph Craig. 14 Replies.
Author Messages
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
01/06/2010 2:47 AM
    Add any comments or questions regarding the How to Create a Custom Login Module with OWS tutorial from Issue 52
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    priyanka
    Nuke Newbie
    Nuke Newbie
    Posts:1


    --
    01/13/2010 1:26 AM
    I m unable to get the video link of DNN Login Module
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    01/13/2010 2:36 AM
    Hello,

    You need to subscribe to view the videos

    Thanks,
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    Andrew
    Nuke Newbie
    Nuke Newbie
    Posts:4


    --
    01/14/2010 7:45 PM
    Hi Lee, thanks for the videos. Do you have any information on how to add a "Remember Me" checkbox as well as a link to retrieve account information if they can't remember they're password?

    Thanks,
    Andrew
    Paul Deschenes
    Nuke Active Member
    Nuke Active Member
    Posts:25


    --
    01/15/2010 5:24 AM
    Andrew,

    I don't personally know of a way to retrieve a password, but know it can be done. There are some modules on snowcovered that do this, but none that I've tried.

    Alternatively what you could do is with your Forgot Password link, have it open a form where the user enters their username to have a new password emailed to them. When they click SEND on this form, in your OWS config, load the USERINFO object with an assignment action, set the password to a random string(you could use a query action to generate one in SQL), set the password in the USERINFO object and Save. Update the Users.UpdatePassword bit field. Then, send them an email with the new random password. With this bit field set, on next login with the new random password, they should be prompted to set a new password. NOW.... remember, that users.updatepassword is triggered in the default DNN user login module, so, you are going to have to add a test in your custom login module for the bit being set on this field, and if so, before you log them in, redirect them to a new No Query Template in your OWS config with a form to log them in with their new random password and have them change their password and confirm the new one. Don't forget to reset the users.updatepassword field after they successfully change their password.

    As for the "remember your username". You can add this checkbox and at login, if the checkbox value=1 use an Assignment action to set the username form field to a cookie. Then, set the default value of your username form field in your login module to value="[myactionname,Cookie]". Also assign and set a cookie value for the checkbox itself, so the next time the user visits the page, the box is checked by default. In the checkbox form field the value will still always be hard coded to value=1 but you add an {IIF,"'[mycheck,Cookie]' = '1'","checked",""} in the input element so that on the users return, you know if they have previously decided to save their username.
    Paul Deschenes
    DNN Creative OWS Tutor
    Subscribe to the website
    Andrew
    Nuke Newbie
    Nuke Newbie
    Posts:4


    --
    01/15/2010 10:51 AM
    Apologies Paul, thank-you for the videos ;) (no offense Lee) and thank-you for the above explanation, that's great and should be able to figure it out from there.
    Chris
    Nuke Newbie
    Nuke Newbie
    Posts:2


    --
    01/18/2010 3:23 AM
    Several DNN OWS newbie questions. 1. I got the Login Module working, then I added a new role, I saved and published the change, test that it works but when I come back to the OWS Administrator the changes are gone. What could be causing this? 2. I created a configuration named 'login' as I followed the video. I decided that I would just import the configuration I downloaded so now I have two configurations named 'login'. I don't see a delete button for the configuration how do I delete the first one?
    David P
    Nuke Newbie
    Nuke Newbie
    Posts:6


    --
    02/28/2010 2:33 PM
    Hi Lee, I've followed the videos and I have got my user reg page working. What I want to do now is have the profile update page. I see no example about how to load in the currently logged in users info so I can display it on the form, and how to update it afterwards. Can you give an example? Thanks, David
    KA-NA
    Nuke Active Member
    Nuke Active Member
    Posts:28


    --
    03/11/2010 6:39 AM
    I modified Your example with one thing - looking for enter key on password field. I added that in Register region, Else - no query template. But I can't force it to work correctly.... When I press enter after typing password, my user is logged in, but DNN is not redirecting/refreshing, so user see only login page... It happenes only in other browsers than IE. Please help with that...
    Bizcom.it
    Nuke Newbie
    Nuke Newbie
    Posts:8


    --
    07/08/2010 9:10 AM
    Hello,

    when I use a Redirect Action I can see a character "0" inside the
    guesting my OWS configuration.

    How can I remove it ? or hide !

    Or replacing with an "loading.gif" animation ?

    Thanks in advance !

    Roberto
    zahir
    Nuke Newbie
    Nuke Newbie
    Posts:1


    --
    11/11/2010 12:07 AM
    hi
    i wanna customize the log in module ,how to solve it??
    Jesus Contreras
    Nuke Newbie
    Nuke Newbie
    Posts:2


    --
    06/25/2012 11:50 PM
    Hi, this tutorial is cool, but I have a question (problem).

    I'm using Active Directory Provider and this module is malfunctioning so I decided to use the OWS login module, but the passwords in the table asp_Membership are Encrypted, so the question is, How can I use this module with encrypted passwords?? I need that info so I can use the OWS module... I'm one step away to solve my problems with the Active Directory Provider, is a Headache.. really is, I will be very thankful with this.
    Thank You!
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    06/30/2012 6:40 PM
    For issues related to the Active Directory module, Mike Horton provides super help in the AD forum at DotNetNuke.com. I know because he has helped me often.

    As for OWS ... and here I'm displaying my ignorance ... but the DotNetNuke framework provides methods by which you can verify passwords without actually knowing what the unencrypted password is. What I don't know is how to call DotNetNuke methods, but there must be a way.

    They reason that you can't decrypt passwords easily is because that would defeat the purpose, providing a large security hole. Hence, the method to verify a password without decrypting it.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Jesus Contreras
    Nuke Newbie
    Nuke Newbie
    Posts:2


    --
    09/23/2012 7:42 PM
    Hi,
    Im using DNN 4.08 with Active Directory Authenticating module, but the users have many problems loging in, so I decided to implement this OWS module, but the AD passwords in the aspnet_Membership table are encrypted and the only way I can use this OWS module is typing the encrypted password. For example, if my password is "Dotnetnuke" I have to type "1300795887" to login. Is there a way to use another column of the aspnet_Membership table or another table so I can use this module? Because I cant get AD passwords unencrypted.
    I hope you can help me, I really need this. Thank you!
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    09/24/2012 9:48 AM
    Jesus,

    First -- if it is possible, I'd recommend that you upgrade your site. 4.8 is an ancient release of DotNetNuke. I'm sure that you'd benefit from all of the improvements, improved security,etc. Plus, you would be able to use a newer version of the AD Authentication provider!

    I have not looked at such an old version of DotNetNuke for a while, but you should be able to call methods to authenticate an unencrypted version of the password. You may have to dig to figure out how to do that, however.

    Sorry that I don't have more specific help for you.

    Joe Craig, Patapsco Research Group
    Complete DNN Support


    ---