# Wachtwoordauthenticatie uitschakelen en inloggen als admin-account

**URL:** https://meta.discourse.org/t/disable-password-auth-and-logging-in-as-admin-account/301978
**Category:** SSO
**Created:** [2 april 2024 om 02:28 UTC](https://meta.discourse.org/t/disable-password-auth-and-logging-in-as-admin-account/301978 "2024-04-02T02:28:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gar1t](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gar1t/32/380142_2.png) [@gar1t](https://meta.discourse.org/u/gar1t)
#### Post date: [2 april 2024 om 02:28 UTC](https://meta.discourse.org/t/disable-password-auth-and-logging-in-as-admin-account/301978/1 "2024-04-02T02:28:19Z")

</div>

I’d like to limit authentication to using GitHub. So I’d like to disable password auth. I have ‘enable github logins’ enabled with the corresponding id and secret.

If I go ahead and disabled password auth, how will Discourse identify me as admin when I log in using my GitHub credentials? Does it use the email address associated with the GitHub account?

The catch for me in this case is that the email I used when creating the Discourse account is different from the email address associated with my GitHub account.

Would adding an additional email address for my admin account in discourse - specifically the one associated with my GitHub account - be used to identify my GitHub login as this admin account?

From [this post](https://meta.discourse.org/t/how-admin-user-re-logins-after-using-discourse-connect-sso-and-custom-domain/246269) it seems there’s a back door to authenticate as admin using my original admin credentials.
