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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Ghost Numerical Username Automatically Created by DNN. Possible?Ghost Numerical Username Automatically Created by DNN. Possible?
Previous
 
Next
New Post
4/28/2009 5:03 PM
 

Is there a way that I can have a user create a Username (say JoeSmith) and have DNN create a transparent username say 26445643 in the background? The reason for this is I need the user to be able to use the custom username (they will always be unique) but when the information is sent from DNN to my database I need the username to be mapped to eg 26445643 (JoeSmith = 26445643.  I need this because when a user changes her name either after marriage or divorce, I want the history to remain in my database. There is no way for me to make the change in the database. Too time consuming and expensive. Is there a way for this?

 
New Post
4/28/2009 5:23 PM
 
  • each user name is mapped to a unique userid
  • users are not able to change their user name (but Displayname)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/29/2009 10:34 AM
 

Thanks Sebastian for the quick response.  I understand the uniqueness of the Username.  However in my system I use DNN to authenticate the user to my database.  Users are oblivious to the backend username in the database.  So if a user, say Jane Doe has a username JaneDoe, it is mapped in my database as XXXJaneDoe.  However when she is married or divorce she probably would not want the last name being the same. She might go for JaneAndersen.  What I could do in this instance is delete JaneDoe, recreate her to be JaneAndersen and map it in my database to XXXJaneDoe.  However the better solution would be for DNN to create JaneDoe, and automatically in the background map JaneDoe to 7654567.  And so in my database after authentication JaneDoe = 7654567.  Now when her last name changes all I have to do is recreate her username in DNN and map it to 7654567.  Less work.  So I need DNN to create this 'ghost' ID 7654567 for me to do that. Can this be done with the current DNN?

 
New Post
4/29/2009 6:42 PM
 

It seems to me that you're overthinking the problem.  You have stated that 'users are oblivious to the backend usernam in the database'.

If that's the case, why change it at all?  Why would xxxxjanedoe care if she changes her name and the username doesn't change?

You can change the display name of the system any time you like, the username doesn't matter.  

The answer you're seeking is that No, you can't change the username without recoding parts of the DNN core.  The username actually comes from the asp.net authentication provider (in the aspnet tables).  The DNN userId is mapped to the username via the DNN Users table.

My thoughts would be : 

a) create your own user account creation process, and automatically allocate a generic username (xxxxx) for the user, instead of letting them pick their own.

or

b) create a username change form, and run an update statement to update the username on both the aspnet tables (if you're using them) and the dnn Users table.  Just because the username is unique doesn't mean it can't be changed.

or

c) Don't worry about it if your users can't see their username, because I highly doubt they care about what they cannot see.  My google account may very well map to 'pinkpajamas' but I don't care about what I cannot see.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Ghost Numerical Username Automatically Created by DNN. Possible?Ghost Numerical Username Automatically Created by DNN. Possible?


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