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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Registration SettingsRegistration Settings
Previous
 
Next
New Post
4/10/2014 11:14 AM
 
Michel,
Are you testing this with an account where the username was NOT originally the e-mail address? When you login as host, is the username for billy.thekid, billy.thekid or billy.thekid@myway.com?
The "Use Email Address as Username" option doesn't change any existing accounts...it only affects new accounts.
 
New Post
4/11/2014 5:04 AM
 
yes this is the case, i use e-mailadress autentication since 1 week
i understand, The "Use Email Address as Username" option doesn't change any existing accounts...it only affects new accounts !
There is a way to autorize the old users to use e-mailadress autentication ?

also it is the same problem if i want to return in the autentication base (without email adress) ?


Cheers from France, Michel
 
New Post
4/11/2014 7:43 AM
 
you may update all existing users via sql, but you will need to update aspnet_users as well.
I'll try to check it out and provide you will a script tonight or tomorrow.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/14/2014 3:40 AM
 

Thank you Sebastian,

i wait your scrip, thank you for your help !

I tried to do a test recording directly new user from Admin 

this new user can login with only the name before the @ eg: billy.thekid

This user is not connected via the link we usually receives when a user registers directly from  internet and thus has not given its authentication code  for the first connection...

regards

 


Cheers from France, Michel
 
New Post
4/14/2014 5:36 AM
 
sorry for the delay , here is the script to be run from Host > SQL (please backup your database first, you need to restart DNN afterwards):

-- make sure, updated email address is stored in aspnet_membership
MERGE INTO aspnet_Membership M USING (SELECT AU.UserID, U.Email FROM aspnet_Users AU INNER JOIN [{objectQualifier}Users] U ON AU.UserName = U.UserName) S ON (M.UserID = S.UserID) WHEN MATCHED AND M.Email NOT LIKE S.Email THEN UPDATE SET M.Email = S.Email;

-- use email address in aspnet_users table for username (link table)
MERGE INTO aspnet_Users U USING aspnet_Membership M ON (U.UserID = M.UserID)
WHEN MATCHED THEN UPDATE SET U.UserName = M.Email;

-- use email in DNN users table
UPDATE [{objectQualifier}Users] SET UserName = Email;

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Registration SettingsRegistration Settings


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