# What's causing the login issue?

**URL:** https://meta.discourse.org/t/topic/400487
**Category:** Support
**Tags:** discourse-id
**Created:** [April 12, 2026, 9:16am UTC](https://meta.discourse.org/t/topic/400487 "2026-04-12T09:16:52Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Lxk520](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lxk520/32/550353_2.png) [@Lxk520](https://meta.discourse.org/u/Lxk520)
#### Post date: [April 12, 2026, 9:16am UTC](https://meta.discourse.org/t/topic/400487/1 "2026-04-12T09:16:52Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/c/7/5/c7533b72d7aed02ed6b53ea66cfdfd4de13bafc4.png)Log in to Discourse with Discourse ID  
An error has occurred  
The requested redirect uri is malformed or doesn’t match client redirect URI.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [April 12, 2026, 10:36am UTC](https://meta.discourse.org/t/topic/400487/2 "2026-04-12T10:36:03Z")

</div>

Hi there, does this help?

> [@The Discourse ID cannot be used after changing the forum domain](https://meta.discourse.org/t/the-discourse-id-cannot-be-used-after-changing-the-forum-domain/394238/2):
>
> Have you tried regenerating it after you changed the domain? At `/admin/config/login-and-authentication/discourse-id` there is a button to do that
> 
> ![Screenshot_20260124_092212_Firefox](https://global.discourse-cdn.com/meta/original/4X/c/5/d/c5d6b4576702e918eddbb401a3fdf99a4085ab5f.jpeg)
> 
> If that doesn’t help, the steps described in this topic should help: [Changing domain names prevents Discourse ID from working](https://meta.discourse.org/t/changing-domain-names-prevents-discourse-id-from-working/386102/)

If not, perhaps this?

> [@The Discourse ID cannot be used after changing the forum domain](https://meta.discourse.org/t/the-discourse-id-cannot-be-used-after-changing-the-forum-domain/394238/3):
>
> Regenerating the credentials didn’t work, but the method in that post did. Thank you for finding it for me.
> 
> > [@Changing domain names prevents Discourse ID from working](https://meta.discourse.org/t/changing-domain-names-prevents-discourse-id-from-working/386102/3):
> >
> > ```plaintext
> > ./launcher enter app
> > rails c
> > SiteSetting.discourse_id_client_id = ""
> > SiteSetting.discourse_id_client_secret = ""
> > 
> > ```

---

<div class="post-metadata">

### Author: ![Lxk520](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lxk520/32/550353_2.png) [@Lxk520](https://meta.discourse.org/u/Lxk520)
#### Post date: [April 12, 2026, 5:22pm UTC](https://meta.discourse.org/t/topic/400487/3 "2026-04-12T17:22:17Z")

</div>

Thank you very much for your helpful answer; it solved my problem. However, a new issue has arisen. When I click on login, I see this message:

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/8/6/e866619e01dab3c0e9db5198e45ed01493cedb46.png)

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [April 12, 2026, 9:37pm UTC](https://meta.discourse.org/t/topic/400487/4 "2026-04-12T21:37:06Z")

</div>

Does following that to go to /u/admin-login work?

---

<div class="post-metadata">

### Author: ![Lxk520](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lxk520/32/550353_2.png) [@Lxk520](https://meta.discourse.org/u/Lxk520)
#### Post date: [April 13, 2026, 12:11am UTC](https://meta.discourse.org/t/topic/400487/5 "2026-04-13T00:11:53Z")

</div>

Administrators can log in to the backend, but other users cannot.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [April 13, 2026, 12:33am UTC](https://meta.discourse.org/t/topic/400487/6 "2026-04-13T00:33:40Z")

</div>

After you log in, can you re-enable Discourse ID logins or local logins (`enable discourse id` or `enable local logins via email` settings)?

---

<div class="post-metadata">

### Author: ![Lxk520](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lxk520/32/550353_2.png) [@Lxk520](https://meta.discourse.org/u/Lxk520)
#### Post date: [April 13, 2026, 5:56am UTC](https://meta.discourse.org/t/topic/400487/7 "2026-04-13T05:56:15Z")

</div>

Administrators can only log in via email; there is no other way to log in.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [April 13, 2026, 10:45am UTC](https://meta.discourse.org/t/topic/400487/8 "2026-04-13T10:45:15Z")

</div>

I see. Are these settings enabled?

> [@NateDhaliwal](#):
>
> `enable discourse id` or `enable local logins via email` settings

(Also, I assume SSO is not enabled?)

---

<div class="post-metadata">

### Author: ![Lxk520](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lxk520/32/550353_2.png) [@Lxk520](https://meta.discourse.org/u/Lxk520)
#### Post date: [April 14, 2026, 12:11am UTC](https://meta.discourse.org/t/topic/400487/9 "2026-04-14T00:11:42Z")

</div>

I have reinstalled it now. Thank you for your patient explanation. Thanks.

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [April 14, 2026, 12:16am UTC](https://meta.discourse.org/t/topic/400487/10 "2026-04-14T00:16:26Z")

</div>


