Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...DNN UserInfo Issues with UserController.UpdateUserDNN UserInfo Issues with UserController.UpdateUser
Previous
 
Next
New Post
8/5/2011 4:48 AM
 
Hi guys

I'm pulling out my hair in frustration over a problem I'm having when updating DNN User details with the DotNetNuke.Entities.Users.UserController assembly, specifically with the UpdateUser method.

I assign updated values to the UserInfo object (security question, security answer, password, displayname, email, firstname, etc), then call the UpdateUser method.

This update call succeeds, but the User is never actually updated - when I try to log in with the User's new password, login fails. However, when I use his old password, login succeeds.

His security question and answer also still uses the old values - so not the latest info.

Therefore, the UpdateUser method fails.

Has anybody experienced this same problem? Any help/thoughts would be much appreciated

Thanks
 
New Post
8/5/2011 11:01 AM
 
Hi Jako,

The UserController.UpdateUser does not update all of the details associated with a user.  In 6.0.0, the details actually persisted are in the set { first name, last name, e-mail, display name, and last activity date }.  Hosts also always have their IsApproved bit set.

To change a user's password, leverage the UserController.ChangePassword method.  In a configuration that requires a question and answer, you'll want to look at the UserController.ChangePasswordQuestionAndAnswer method.  

I agree that it is a bit confusing to be able to set UserInfo properties and not see them persisted when executing the UserController.UpdateUser method!

Hope this helps!

Brandon

Edit: I should also mention that this behavior assumes the default DotNetNuke membership provider.  All of this behavior can be modified via a custom provider, although that would be overkill for most all configurations.

Brandon Haynes
BrandonHaynes.org
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...DNN UserInfo Issues with UserController.UpdateUserDNN UserInfo Issues with UserController.UpdateUser


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out