R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
Any way to change a password?
Last Post 01 Jan 1900 05:00 AM by . 4 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
majsuUser is Offline
New Member
New Member
Posts:17

--
26 Feb 2007 11:39 PM  
Ok, I've exhausted all my ListX knowledge, which took about as much time as to download the PA.

I've been through the documentation and samples I could find but can't find a way to update the user password. I tried to use the USERINFO password but I revceived the following:

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




Assignment: Assign <UserInfo> variable to 'SAVE,NewUserId'.
Executing
Updating User
Unabled to assign User Info Property () Save User:System.Exception: Invalid Password
at DotNetNuke.Entities.Users.UserController.ChangePassword(UserInfo user, String oldPassword, String newPassword)
at DotNetNuke.Entities.Users.UserController.SetPassword(UserInfo objUser, String newPassword)
at Bi4ce.Modules.xList.MessageActions.Handle_Assignment(DataSet& sharedds, MessageActionItem act, Debugger& Debugger)


Anybody have an idea?

Lee
kevinmschreinerUser is Offline
Advanced Member
Advanced Member
Posts:729

--
27 Feb 2007 01:47 PM  
The settings for passwords are still controlled by DNN, meaning - the minimum requirements for the password must be met in order to successfully assign a new password. I believe the default minimum restriction requires seven characters. Have you tested with a password greater than or equal to seven characters?
majsuUser is Offline
New Member
New Member
Posts:17

--
27 Feb 2007 11:27 PM  
Thanks Kevin,

That was the problem. The password was too short. A couple of followups?

1) Is there an orderly way to identify and code for those types of errors (or any exception) other than in debugging.

2) Is there a way to write a user login with listx? I want to preload a database with registration candidates, then when they come in and try to login, I want to register them then. So what I really want to do is allow some to "login" and if they are new, register them, if they are already registered, then login as if nothing ever happened. Any ideas how to in listx? If there is the world will be perfect (at least mine will be).?

Thanks

Lee

rgallaisUser is Offline
Basic Member
Basic Member
Posts:146

--
06 Mar 2007 05:18 PM  
1)The best way is to check the user inputs by adding javascript functions, at least for the password length. Also when you try to create a new user with incorrect entries (password too short or username already existing), the insert fails and DNN returns a value equals '-1'.
You need also to be sure that the username is not already existing in the users table and in the aspnet_Membership.

2) To have a valid DNN user registration, you must fill, in the users table, the username, firstname, lastname, displayname and password fields. So you can ask your new users to fill a form with an email address and populate all the required fields in the database with this email address.
Romain Gallais<br>Business Intelligence Force, Inc. (bi4ce)
majsuUser is Offline
New Member
New Member
Posts:17

--
09 Mar 2007 02:48 PM  
Thanks
You are not authorized to post a reply.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share