Was configuring and testing social logins and had disable local user account. Logged out to test. Now it appears that I can’t log in back in to using the local admin. Is there a way to force it? If not what are my options?
You can use the console to fix this.
- SSH into your server.
- If you’ve followed the official install guide, run
cd /var/discourse; ./launcher enter app.
If you are running a custom Discourse setup (e.g. not based on Docker), do whatever you need to do to get into your Discourse’s production environment.
rails c. You’re now in the Rails console; everything from here on is parsed as Ruby commands.
SiteSetting.enable_local_logins = true
exitfrom the container. Local logins should now be reenabled.
Login/Sign up modals empty
Thanks for the reply!
I am using Discourse hosted by Discourse, so I don’t have any credential information to ssh into the server. (Unless there is something I missed along the way)
Email sent as requested.
Now that the issue is resolved. I have given a non local account administrator rights. I should, theoretically, be able to turn off local accounts, correct?
Sure give it a shot, any issues, email us.
Thanks. Looks like everything is good now.
There is also
/users/admin-login now for login bypass if you get locked out due to Site Setting mistakes.