+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / How attribute one role by default to new users

How attribute one role by default to new users

4 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    18 Oct 2007
    Link to this post
    Hi,
    How attribute one role by default to new users
    Anyone have one solution to allow to new users by default one specific role and how to implement during registering step?.

    How to limit the inscription to user only authorized. Use one list or other solutions?.

    Best regards


  2. Slavo
    Slavo avatar
    295 posts
    Registered:
    24 Sep 2012
    18 Oct 2007
    Link to this post
    Hello Pierre,

    The CreateUser control has a property called DefaultRoles that controls the functionality you want. You just have to type all roles you want the user to be assigned to and separate them with commas. Then all will be handled automatically upon registration.
    I am not sure I understand correctly what you mean by  "limit the inscription to user only authorized". Do you want to display specific content on the page depending on whether the user is authenticated or not? If this is the case, you can use the LoginView control for the purpose. Otherwise, please give us some more details about what exactly you want to achieve.

    Sincerely yours,
    Slavo
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    19 Oct 2007
    Link to this post
    How to limit the new user to one list  of members?. For sample only the members of my school or company are allowed.
    No other unauthorized used are allowed to register in the site and go for sample to the blogs or Forums.

    Other,

    How to control email addresses for new users (send emails and validate one link to activate account). Anyone has developed one solution?

    Thanks  
  4. Slavo
    Slavo avatar
    295 posts
    Registered:
    24 Sep 2012
    19 Oct 2007
    Link to this post
    Hello Pierre,

    From what you wrote I understand that you want to control who registers in your user database and who doesn't. I want to clarify that before a user registers on your site, he is anonymous, meaning that you know nothing about him. This is actually the purpose of registration - you collect some credentials and info about the user so that you can identify him later. I just cannot think of a way to determine if a user is from your school or company, if he did not register yet. Of course, you can check the domain or IP of the one registering, and compare it to a range of IPs, but you would have to do all that by yourself.
    If you want to separate users after Login - as opposed to Register - then you can do that through page permissions. Just create different roles for the different types of users and then for every page, set the View permission for these roles.

    Regarding the question about e-mail address confirmation of newly registered users, we have not tried this before. We use Microsoft's standard login controls and they do not provide the functionality by default. You can extend the CreateUserWizard control and add an additional step to it. Please refer to the following article for more information: http://msdn2.microsoft.com/en-us/library/ms178342.aspx.

    Regards,
    Slavo
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
4 posts, 0 answered