Join our DNN Community    (Newsletter, Tips, Tricks and Forums for DNN Skins & Modules)

 


 
Microsoft Gold Certified Partner - DNN Benefactor

DotNetNuke Powered! 


Wednesday, October 08, 2008 Register · Login · Contact · Search:  
Company Solutions Portfolio Contact
Forums
Tips and Tricks
You asked for it, and we added it. We have so many great developers using ListX right now - it would be best to get some samples straight from the gurus who swear by it. View and Add your samples and tips here!
Subject: Change Password

You are not authorized to post a reply.   
Author Messages
bkeogh
Featherweight
Posts:7

06/30/2008 3:58 PM Alert 
I'm trying to create a custom password change form with ListX. Is this possible with DNN 4.8?



Thanks
wlevy
Middleweight
Posts:66

07/03/2008 8:38 AM Alert 
Assign a variable of type UserInfo, with no variable name, the UserID of the user.
Assign a variable of type UserInfo, named Password, the new password.
Assign a variable of type UserInfo, with no variable name, the value Save,SaveResult.
You can then check to make sure the change was saved:
If [FORMAT,[SaveStatus.Error,A],{LENGTH}] = 0, you're good to go.
bkeogh
Featherweight
Posts:7

07/03/2008 6:55 PM Alert 
Thanks for the reply. I added the Save,SaveResult command but still not working. It appears to work, no errors, but the password doesnt change. Here's my action script, any help is appreciated:

Using latest version of ListX and DNN 4.8.2


Action Index Message / Action
0. If '[Action,QueryString]' = 'UpdatePwd'
# 1. Assignment: Assign <Action> variable 'OldPassword' to '[oldpwd,Form]'.
# 2. Assignment: Assign <Action> variable 'NewPassword' to '[newpwd,Form]'.
# 3. Assignment: Assign <Action> variable 'NewPassword2' to '[newpwd2,Form]'.
# 4. Assignment: Assign <UserInfo> variable to '[Username,System]'.
# 5. Assignment: Assign <UserInfo> variable to 'LOGIN,OldPassword,LoginResult'.
# 6. If [LoginResult,Action] = 1
# 7. If [NewPassword,Action] = [NewPassword2,Action]
# 8. Assignment: Assign <Action> variable 'Status' to 'Updating Password...'.
# 9. Assignment: Assign <UserInfo> variable 'Password' to '[newpassword,Action]'.
# 10. Assignment: Assign <UserInfo> variable to 'Save,SaveResult'.
# 11. If [FORMAT,[SaveStatus.Error,A],{LENGTH}] = 0
# 12. Assignment: Assign <Action> variable 'Status' to 'The password has been changed'.
# 13. Else
# 14. Assignment: Assign <Action> variable 'Status' to '<br>Error - Password Not Changed'.
# 15. Else
# 16. Assignment: Assign <Action> variable 'Result' to 'The old password you entered is invalid'.
robert_chumley
Please Wait...
Posts:595

07/07/2008 2:56 PM Alert 
You also have to make sure the password follows the rules of the web site. It will not change the password if it is too short or does not meet the minimal complexity requirments.
Thanks,

Robert Chumley
r2integrated (formally bi4ce)
bkeogh
Featherweight
Posts:7

07/07/2008 3:34 PM Alert 
unfortunately I've tried many different combinations with no luck. I'm using default DNN password requirements, and using passwords such as "test1234" (which works via the normal password change methods).

I get no entries in the event log and the [FORMAT,[SaveStatus.Error,A],{LENGTH}] = 0 test comes back positive, indicating the save was successful.

Are there any other debugging methods I can use to get to the bottom of this? Thanks in advance for any help


Beau
robert_chumley
Please Wait...
Posts:595

07/08/2008 10:28 AM Alert 
Hello,
It does not appear you have an action that is assigning the UserInfo object to [UserID,SYSTEM]. (no name for this assignment) This will tell the application which user to update. It does not user the current user by default.
Thanks,

Robert Chumley
r2integrated (formally bi4ce)
bkeogh
Featherweight
Posts:7

07/08/2008 5:17 PM Alert 
I had it using the Username option instead of UserID as explained in the manual for Custom Login. I added another statement using UserID, but still no luck.

Here's the output (also attached as gif).




Initiating the Message Action Handler
If '[Action,QueryString]' = 'UpdatePwd'
'UpdatePwd' = 'UpdatePwd' = True
Passed: Handling child actions.
Executing
Assignment: Assign <Action> variable 'OldPassword' to '[oldpwd,Form]'.
Executing
Assignment: Action[OldPassword] = 'test123'


Assignment: Assign <Action> variable 'NewPassword' to '[newpwd,Form]'.
Executing
Assignment: Action[NewPassword] = 'test234'


Assignment: Assign <Action> variable 'NewPassword2' to '[newpwd2,Form]'.
Executing
Assignment: Action[NewPassword2] = 'test234'


Assignment: Assign <UserInfo> variable to '[Username,System]'.
Executing


Assignment: Assign <UserInfo> variable to 'LOGIN,OldPassword,LoginResult'.
Executing


If [LoginResult,Action] = 1
1 = 1 = True
Passed: Handling child actions.
Executing
If [NewPassword,Action] = [NewPassword2,Action]
test234 = test234 = True
Passed: Handling child actions.
Executing
Assignment: Assign <Action> variable 'Status' to 'Updating Password...'.
Executing
Assignment: Action[Status] = 'Updating Password...'


Assignment: Assign <UserInfo> variable to '[UserID,System]'.
Executing


Assignment: Assign <UserInfo> variable 'Password' to '[newpassword,Action]'.
Executing
Assigned Membership (Password)
Assigned Property (Password)


Assignment: Assign <UserInfo> variable to 'Save,SaveResult'.
Executing
Updating User


If [FORMAT,[SaveStatus.Error,A],{LENGTH}] = 0
0 = 0 = True
Passed: Handling child actions.
Executing
Assignment: Assign <Action> variable 'Status' to 'The password has been changed'.
Executing
Assignment: Action[Status] = 'Updating Password...The password has been changed'




Else






Else



Thanks





wlevy
Middleweight
Posts:66

07/17/2008 2:04 PM Alert 
Have you tried it without the LOGIN? (Eliminate lines 5, and 6)
pauldes
Immortal
Posts:1389

07/18/2008 12:25 PM Alert 
Here are some actions from a working module I have that changes the user's password.






ListX....makes you look brilliant, even though you're not.
pauldes
Immortal
Posts:1389

07/18/2008 12:29 PM Alert 
also, here is the debug from the actions above...






ListX....makes you look brilliant, even though you're not.
bkeogh
Featherweight
Posts:7

07/18/2008 12:31 PM Alert 
I actually figured this out. It was a stupid mistake on my part. My [newpassword,Action] should have been [NewPassword,Action]. After I changed that it's works fine

You are not authorized to post a reply.



ActiveForums 3.6
Latest Post
 
At R2integrated (formerly Bi4ce), we take support seriously.  That's why we support our customers and DNN community with daily monitoring from our experienced engineering team.  We ask that the first step taken is to read the relevant documentation and support forums prior to submitting any questions that may already be available or have been answered.  We ask that you review the documentation that we provide for our products before posting a question.

The Forums are for our customers to chat, exchange ideas and strategies, and submit feedback.  Please be sure to perform keyword searches for previous related forum responses.

To be helpful when submitting a new item, please include the following: 
  1. DNN Version
  2. Module Version
  3. Admin Log Viewer Information
  4. Environment detail: Operating system, .NET framework version, database and version, IIS version, Browser version (if appropriate)
We always try to respond quickly and monitor the forums daily during business hours (EST).  Occasionally, requests for a specific project requirement may not apply for the free support offered. For project specific support please submit via our Information Request form.

Thank you for using our Forums.

Click here to register for the Forums
 
© 2008 by R2integrated (formerly Bi4ce) | DNN® is a registered trademark of DotNetNuke Corporation