More in this section

Forums / Developing with Sitefinity / User Registration - Email and Username

User Registration - Email and Username

2 posts, 0 answered
  1. Matt
    Matt avatar
    35 posts
    Registered:
    01 Nov 2010
    12 Aug 2011
    Link to this post
    What is the easiest way to make an email address not required in the Registration Form?

    Also, I'd like to assign users their usernames.  How can I do that?  Their usernames will just be usr + a number

    For instance, usr1001 with 1001 being the next autonumber identity value in a table.

    Thanks,
    Matt


  2. Veronica
    Veronica avatar
    125 posts
    Registered:
    30 Jan 2015
    15 Aug 2011
    Link to this post
    Hello Matt,

    One possible way to remove the validation of the email field is to drag a Registration Widget to the Page and edit it (the Registration widget is under the Users group). You need to find the ValidatorDefinition under the email TextField and remove it:
    <sf:TextField ID="email" runat="server" DataFieldName="Email" DisplayMode="Write" Title="<%$ Resources:Labels, Email %>" CssClass="sfregisterField sfregisterEmail" WrapperTag="li">

    After you save the widget you will be able to register a new user without need to add any email in the Registration form.

    As per assigning usernames - you can find the "userName" TextField and customize it as shown in this forum post.

    Please let me know if this was helpful.

    Best wishes,
    Veronica Milcheva
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered