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

Forums / Developing with Sitefinity / New user, backend access default setting

New user, backend access default setting

8 posts, 1 answered
  1. Gregg
    Gregg avatar
    5 posts
    Registered:
    27 Mar 2014
    16 May 2014
    Link to this post

    When adding a new user, by default "This user can access site backend" is checked off (http://screencast.com/t/lwX5Njp2fU5m).

    Is there a way to change this default setting to 'unchecked'?

  2. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    24 Nov 2016
    20 May 2014
    Link to this post
    Hello Greg,

    You should map the UserNew template and set the checkbox to be initially false. You can do this through Administration -> Settings -> Advanced -> Controls -> ViewMap. Create New and add to HostType: Telerik.Sitefinity.Security.Web.UI.Principals.UserNewDialog, Telerik.Sitefinity, in LayoutTemplatePath set the path to the new template. Example. I have attached the modified view for the UserNewDialog. After adding the ViewMap, restart the application. Now the checkbox should be initially not checked.

    Regards,
    Nikola Zagorchev
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Gregg
    Gregg avatar
    5 posts
    Registered:
    27 Mar 2014
    20 May 2014 in reply to Nikola Zagorchev
    Link to this post

    Nikola,

         Thank you. This worked.

  4. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    24 Nov 2016
    23 May 2014
    Link to this post
    Hi Greg,

    I am glad you have achieved what you wanted. Write back if you have any questions.

    Regards,
    Nikola Zagorchev
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  5. Steve
    Steve avatar
    3 posts
    Registered:
    16 Mar 2011
    16 Mar 2015 in reply to Nikola Zagorchev
    Link to this post
    It only works the first time though... Click create a user, then back to Users, then Create a User. The box is checked the second time through.
  6. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    24 Nov 2016
    19 Mar 2015
    Link to this post
    Hi Steve,

    You have to set the checked property in the ClearForm function from the ascx, as well:
    function ClearForm() {
                var chkUserIsBackendUser = $get('<%= chkUserIsBackendUser.ClientID %>');
                var formIndex = 0;
                var usernameField = $get('UserName' + formIndex);
                var passwordField = $get('Password' + formIndex);
                var emailField = $get('Email' + formIndex);
                var confirmPasswordField = $get('ConfirmPassword' + formIndex);
                var passwordQuestionField = $get('PasswordQuestion' + formIndex);
                var passwordAnswerField = $get('PasswordAnswer' + formIndex);
                var commentField = $get('Comment' + formIndex);
     
                usernameField.value = '';
                passwordField.value = '';
                emailField.value = '';
                confirmPasswordField.value = '';
                passwordQuestionField.value = '';
                passwordAnswerField.value = '';
                commentField.value = '';
     
                var profilesDataControl = $find("<%= profilesData.ClientID %>");
                profilesDataControl.reset();
     
                $('input[name="roles"]').each(function (i) {
                    $(this).removeAttr('checked');
                });
                // Modified
                chkUserIsBackendUser.checked = false;
                chkUserIsBackendUser.disabled = false;
                window.scrollTo(0, 0);
            }

    Hope this is helpful.

    Regards,
    Nikola Zagorchev
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
    Answered
  7. Steve
    Steve avatar
    3 posts
    Registered:
    16 Mar 2011
    31 Mar 2015 in reply to Nikola Zagorchev
    Link to this post
    That works... Thanks!
  8. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    24 Nov 2016
    01 Apr 2015
    Link to this post
    Hello Steve,

    Thank you for letting me know. Glad it works on your end, as well.

    Regards,
    Nikola Zagorchev
    Telerik
     
    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 Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
8 posts, 1 answered