# How to regain Admin access when Discourse ID is disabled and before ticking Enable Local Login option?

**URL:** https://meta.discourse.org/t/how-to-regain-admin-access-when-discourse-id-is-disabled-and-before-ticking-enable-local-login-option/403202
**Category:** Self-hosting
**Created:** [May 18, 2026, 3:45am UTC](https://meta.discourse.org/t/how-to-regain-admin-access-when-discourse-id-is-disabled-and-before-ticking-enable-local-login-option/403202 "2026-05-18T03:45:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![smokiebacon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/smokiebacon/32/491661_2.png) [@smokiebacon](https://meta.discourse.org/u/smokiebacon)
#### Post date: [May 18, 2026, 3:45am UTC](https://meta.discourse.org/t/how-to-regain-admin-access-when-discourse-id-is-disabled-and-before-ticking-enable-local-login-option/403202/1 "2026-05-18T03:45:14Z")

</div>

So I may have completely messed up and unable to forever gain access to my community. I wanted to turn off Discourse ID and let users sign up locally, with their own username and password, and not route through Discourse ID.

I am logged on my Discourse ID connected account, went to admin section, disabled Discourse ID, and ticked the “Enable Local Login.” However, I didn’t create any local accounts as admins.

Now I am unable to access my community at all. I click Sign Up, it just says Welcome with no login fields.

I go to Sign In, and it says No login methods are configured. Administrators can visit [/u/admin-login](https://asiamonger.com/u/admin-login) to reconfigure the site.

I go to /u/admin-login, and enter my email, and I never receive the email.

What do I do?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [May 18, 2026, 6:01am UTC](https://meta.discourse.org/t/how-to-regain-admin-access-when-discourse-id-is-disabled-and-before-ticking-enable-local-login-option/403202/2 "2026-05-18T06:01:14Z")

</div>

Do you have ssh access to this site? You may be able to use the command line to gain access. Do you have email credentials configured for sending?

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [May 18, 2026, 6:46pm UTC](https://meta.discourse.org/t/how-to-regain-admin-access-when-discourse-id-is-disabled-and-before-ticking-enable-local-login-option/403202/3 "2026-05-18T18:46:58Z")

</div>

are you hosted or self-hosted? if hosted, contact whoever is hosting your site.

if self-hosted:

```plaintext
cd /var/discourse
./launcher enter app
rake admin:create

```

follow the prompts to create an admin login.
