How do you disable default login/registration and enable on login/registration through SSO plugin.
-
You can disable normal registration in the ACP. Hiding the normal login is dangerous because you could lose access the ACP entirely, though.
-
You could hide the normal login field with custom CSS:
.page-login .login-block { display: none; }
But then if the SSO goes down you can't log in within personally changing the CSS for yourself.
Edit: you could then put this in your custom JS:
$(window).on('load action:ajaxify.end', function () { if (app.user.isAdmin) { $('.page-login .login-block').show(); } });
which would show admins the normal login fields as well.
-
@pitaj said in How do you disable default login/registration and enable on login/registration through SSO plugin.:
You could hide the normal login field with custom CSS:
.page-login .login-block { display: none; }
But then if the SSO goes down you can't log in within personally changing the CSS for yourself.
Edit: you could then put this in your custom JS:
$(window).on('load action:ajaxify.end', function () { if (app.user.isAdmin) { $('.page-login .login-block').show(); } });
which would show admins the normal login fields as well.
Does this disable the original method of creating an account? Can I ensure it is not possible to create an account without sso?
-
You should be able to disable registration in the ACP. That will still allow SSO.
Edit: previous discussion
User registration only with SSO
Hi everyone, Quick question, is it possible to disable the registration form, in order to allow registration by SSO only? Thanks for your help Christian
NodeBB Community (community.nodebb.org)