How disable general local login strategy
-
add option in ACP to disable local logins 路 Issue #1232 路 NodeBB/NodeBB
should hide the local login elements in login.tpl should disable /login /register routes.
GitHub (github.com)
-
To disable the local login, must I remove the routes for /login und /register? What do you mean 'hiding' @julian ? Or just fork and modify the theme, e.g., remove login.tpl and link in the menu.tpl?
If so, which theme should I modify? Will the templates in the lavanda overwrite those of in the vanilla? -
You can comment out these lines, and also these lines
I thought about adding an option to toggle turning on and off the login routing and template, but I'm afraid it would be too easy to lock yourself out if your SSO login stopped working altogether.
-
@julian Is it possible to just add a toggle in the plugin's admin page and works only for this plugin. If the oauth2 server is down, just remove the plugins temporarily. I have a doubt whether NodeBB has already a safe mode start, this means starting without all the plugins ?
-
@kevinprotoss That's a good point -- we do, actually.
./nodebb reset
will disable all plugins and reset the theme to vanilla. We can easily extend this to also re-enable local logins as well.Okay, let's make it an issue.