More in this section

Forums / General Discussions / Registration widget doesnt offer possibility of choosing between public and backend users

Registration widget doesnt offer possibility of choosing between public and backend users

6 posts, 0 answered
  1. Robert
    Robert avatar
    70 posts
    Registered:
    05 Feb 2009
    19 Mar 2012
    Link to this post
    According to this text:

    http://www.sitefinity.com/documentation/documentationarticles/user-guide/widgets/users-widgets-group/configuring-the-registration-widget 

    the registration widget should allow us to choose the provider, however the mine doesnt show such option, and this is exactly my problem, I need to register users without access to backend but now it is turned on by default.

    Please help, thank you.
    Robert
  2. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    22 Mar 2012
    Link to this post
    Hello Robert,

    Thank you for reporting this. Actually, the Provider option is removed from the latest version of Sitefinity, so we will correct out documentation. Please excuse us for the inconvenience. Your Telerik points have been updated.

    Kind regards,
    Jen Peleva
    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
  3. Robert
    Robert avatar
    70 posts
    Registered:
    05 Feb 2009
    22 Mar 2012
    Link to this post
    Hi Jen,
    thank you for your answer.

    To solve my problem, can you please suggest what should I do in order to have users registered as non-backend users? Currently they are all backend users by default with grayed checkbox in administration, so I cant event change it manually. I guess I have to override some function, can you please guide me, which one?

    Thank you,
    Robert
  4. Robert
    Robert avatar
    70 posts
    Registered:
    05 Feb 2009
    26 Mar 2012
    Link to this post
    Hi again,
    so this is funny. I think I managed to set IsBackendUser manually via code, in my custom RegistrationForm like this:

    protected override bool TryCreateUser(UserManager manager, out User user, out MembershipCreateStatus status)
            {
                user = manager.CreateUser((string)this.UserNameField.Value, (string)this.PasswordField.Value, (string)this.EmailField.Value, null, null, !this.SendRegistrationEmail, null, out status);
                user.IsBackendUser = false;
                manager.SaveChanges();
                return (status == MembershipCreateStatus.Success);
            }

    1. not sure if its right, though, but in DB field sf_Users.is_backend_user = 0
    2. But, when I go to backend and view that user, the checkbox 'this user can access backend' is checked, and grayed
    3. Additionally, when I try to login with two such users (with this manually removed backend flag) it works.
    Btw. this is valid for Small business edition.

    Please can you confirm whether you can reproduce it and if it's a bug?

    Thank you,
    Robert
  5. Robert
    Robert avatar
    70 posts
    Registered:
    05 Feb 2009
    27 Mar 2012
    Link to this post
    Please anyone? I'd be glad to hear Telerik's opinion on this.
  6. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    27 Mar 2012
    Link to this post
    Hello Robert,

    I've tested the registration widget and it seems that users, who are registered through it can't access the backend by default. Have you made any modifications to the registration widget?

    Regards,
    Jen Peleva
    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
6 posts, 0 answered