New user, backend access default setting

Posted by Community Admin on 04-Aug-2018 14:44

New user, backend access default setting

All Replies

Posted by Community Admin on 16-May-2014 00:00

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

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

Posted by Community Admin on 20-May-2014 00:00

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
 

Posted by Community Admin on 20-May-2014 00:00

Nikola,

     Thank you. This worked.

Posted by Community Admin on 23-May-2014 00:00

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
 

Posted by Community Admin on 16-Mar-2015 00:00

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.

Posted by Community Admin on 19-Mar-2015 00:00

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
 

Posted by Community Admin on 31-Mar-2015 00:00

That works... Thanks!

Posted by Community Admin on 01-Apr-2015 00:00

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
 

This thread is closed