# Cannot log in after log out Discourse (after have install wp-discourse)

**URL:** <https://meta.discourse.org/t/cannot-log-in-after-log-out-discourse-after-have-install-wp-discourse/138817>\
**Category:** WordPress\
**Created:** [January 16, 2020, 1:46pm UTC](https://meta.discourse.org/t/cannot-log-in-after-log-out-discourse-after-have-install-wp-discourse/138817 "2020-01-16T13:46:19Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [January 17, 2020, 9:43pm UTC](https://meta.discourse.org/t/cannot-log-in-after-log-out-discourse-after-have-install-wp-discourse/138817/5 "2020-01-17T21:43:49Z")

</div>

That’s great that you have this setup locally. It sounds like there is a configuration problem with your SSO setup. You can disable SSO on Discourse from the rails console. To get to the console, `cd` your `discourse` directory and run:

```ruby
rails c

```

When the console prompt appears, run:

```plaintext
SiteSetting.enable_sso = false

```

Once you have done that, you should be able to login to your Discourse site through its login form. Check your SSO settings on Discourse and WordPress. Then re-enable SSO.

---

_[View the full topic](https://meta.discourse.org/t/cannot-log-in-after-log-out-discourse-after-have-install-wp-discourse/138817)._
