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

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedDisable login after user register Disable login after user register
Previous
 
Next
New Post
10/5/2012 5:29 AM
 

Hello,

I'm providing user registration in dnn portal via custom module. The thing I want to obtain is to enable user to login only after email verification. So just after adding new user I don't want him to be able to log in. How can I unauthorized user using dnn framework? Or is there better way to do this ? 

I was trying to add user to 'Unverified Users' but he still can login. 

*EDIT*

I have found a solution:

....

userInfo.Membership.Approved = false;          
UserCreateStatus status = MembershipProvider.Instance().CreateUser(ref userInfo);

cheers ;)

 
New Post
10/11/2012 2:14 AM
 
DNN 6.2 has another option: it accepts the user, but doesn't add him to the acknowledged members role, this needs to be done by an admin. You may grant view permissions for any private content to this role instead of "Registered users" as before,

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedDisable login after user register Disable login after user register


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