I have a Discourse instance running which had SSO turned on. I got locked out due to misconfiguration.
Proceeded with changing a couple of settings:
./launcher enter app
rails c
SiteSetting.enable_sso = false
SiteSetting.enable_local_logins = true
exit
Trying to login directly shows no error and redirects to the home page. No errors are shown.
Also tried using the /users/admin-login
.
Log output:
Started GET "/u/admin-login/490c222f04e33b2c59cc6fbdab2e7373" for <IP> at 2018-07-19 16:27:18 +0000
Processing by UsersController#admin_login as HTML
Parameters: {"token"=>"490c222f04e33b2c59cc6fbdab2e7373"}
Redirected to http://<discourse address>
Completed 302 Found in 28ms (ActiveRecord: 7.0ms)
Started GET "/" for <IP> at 2018-07-19 16:27:18 +0000
Started GET "/" for <IP> at 2018-07-19 16:32:52 +0000
Processing by CategoriesController#index as HTML
Rendering categories/index.html.erb within layouts/application
Rendered categories/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_head.html.erb (0.2ms)
Rendered common/_discourse_stylesheet.html.erb (0.1ms)
Rendered common/_special_font_face.html.erb (0.1ms)
Rendered application/_header.html.erb (0.1ms)
Rendered common/_discourse_javascript.html.erb (0.2ms)
Completed 200 OK in 93ms (Views: 6.4ms | ActiveRecord: 22.4ms)
Started GET "/" for <IP> at 2018-07-19 16:32:52 +0000
Anything I’m missing?