# Login redirects to homepage, shows no error

**URL:** <https://meta.discourse.org/t/login-redirects-to-homepage-shows-no-error/92728>\
**Category:** Product Support\
**Created:** [19.Июль.2018 16:36:27 UTC](https://meta.discourse.org/t/login-redirects-to-homepage-shows-no-error/92728 "2018-07-19T16:36:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Sousa](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daniel_sousa/32/101511_2.png) [@Daniel\_Sousa](https://meta.discourse.org/u/Daniel_Sousa)\
**Post date:** [19.Июль.2018 16:36:27 UTC](https://meta.discourse.org/t/login-redirects-to-homepage-shows-no-error/92728/1 "2018-07-19T16:36:27Z")

</div>

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:

```plaintext
./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:

```plaintext
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?

---

_[View the full topic](https://meta.discourse.org/t/login-redirects-to-homepage-shows-no-error/92728)._
