# Disabled login, now cant login

**URL:** <https://meta.discourse.org/t/disabled-login-now-cant-login/26773>\
**Category:** Product Support\
**Created:** [March 25, 2015, 4:29pm UTC](https://meta.discourse.org/t/disabled-login-now-cant-login/26773 "2015-03-25T16:29:18Z")\
**Posts on this page:** 8\
**Page:** 1

## AI-generated summary

**Disabled login, now can't login**

[JamesRamm](/t/-/26773/1) accidentally disabled all login options in their Discourse admin settings and is now unable to log in. The community has offered a solution: 

To restore login functionality, admins can SSH into their server and run the following commands:
```ruby
cd /var/discourse
./launcher enter app
rails c
SiteSetting.enable_local_logins = true
```
([elberet](/t/-/26773/3) and [zogstrip](/t/-/26773/2))

Alternatively, admins can use the admin-login system by visiting `https://forum.example.com/u/admin-login` ([jomaxro](/t/-/26773/11)).

<div class="post-metadata">

**Author:** ![JamesRamm](https://avatars.discourse-cdn.com/v4/letter/j/8dc957/32.png) [@JamesRamm](https://meta.discourse.org/u/JamesRamm)\
**Post date:** [March 25, 2015, 4:29pm UTC](https://meta.discourse.org/t/disabled-login-now-cant-login/26773/1 "2015-03-25T16:29:18Z")

</div>

So, I foolishly disabled all the login options in the admin settings of my discourse installation.  
Then I logged out.  
Now I can’t log in. When I click ‘login’, the login box is completely empty.

Silly I know, but is there any way to restore?

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [March 25, 2015, 4:33pm UTC](https://meta.discourse.org/t/disabled-login-now-cant-login/26773/2 "2015-03-25T16:33:06Z")

</div>

> [@JamesRamm](#):
>
> Silly I know, but is there any way to restore?

You’ll have to SSH into your server, `cd /var/discourse`, `./launcher enter app` and then `rails c` to changes the values of some of the `SiteSettings` 😉

---

<div class="post-metadata">

**Author:** ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)\
**Post date:** [March 25, 2015, 4:33pm UTC](https://meta.discourse.org/t/disabled-login-now-cant-login/26773/3 "2015-03-25T16:33:14Z")

</div>

If you have access to the server, sure:

```ruby
/var/discourse/launcher enter app
rails c
SiteSetting.enable_local_logins = true

```

---

<div class="post-metadata">

**Author:** ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)\
**Post date:** [March 25, 2015, 4:35pm UTC](https://meta.discourse.org/t/disabled-login-now-cant-login/26773/4 "2015-03-25T16:35:18Z")

</div>

So, about those presence features… perhaps Discourse also needs an “@user is composing a reply” indicator? 😆

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [March 25, 2015, 4:35pm UTC](https://meta.discourse.org/t/disabled-login-now-cant-login/26773/5 "2015-03-25T16:35:51Z")

</div>

I would still continue writing my reply 😉

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [December 20, 2018, 4:29pm UTC](https://meta.discourse.org/t/disabled-login-now-cant-login/26773/10 "2018-12-20T16:29:48Z")

</div>

Automatically bumped on December 20, 2018, 4:29pm UTC



---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [December 20, 2018, 4:34pm UTC](https://meta.discourse.org/t/disabled-login-now-cant-login/26773/11 "2018-12-20T16:34:06Z")

</div>

In addition to modifying site settings via the console as suggested above, admins can also get in through the admin-login system. `https://forum.example.com/u/admin-login`

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [December 20, 2018, 4:34pm UTC](https://meta.discourse.org/t/disabled-login-now-cant-login/26773/12 "2018-12-20T16:34:08Z")

</div>

Closed on December 20, 2018, 4:34pm UTC


