# Lock username to GitHub username when authenticating using GitHub

**URL:** <https://meta.discourse.org/t/lock-username-to-github-username-when-authenticating-using-github/49133>\
**Category:** Feature\
**Created:** [August 24, 2016, 5:50am UTC](https://meta.discourse.org/t/lock-username-to-github-username-when-authenticating-using-github/49133 "2016-08-24T05:50:31Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [August 30, 2016, 8:53pm UTC](https://meta.discourse.org/t/lock-username-to-github-username-when-authenticating-using-github/49133/6 "2016-08-30T20:53:41Z")

</div>

That also isn’t a good test. Staff seem to be immune, here is the logic:

> <https://github.com/discourse/discourse/blob/1e57bbf5c8f28e4439bd09a09e8ad368c56afd04/lib/guardian/user_guardian.rb#L8-L13>

So you need a regular member.

---

_[View the full topic](https://meta.discourse.org/t/lock-username-to-github-username-when-authenticating-using-github/49133)._
