# SSO Authentication Issue with differently cased emails

**URL:** <https://meta.discourse.org/t/sso-authentication-issue-with-differently-cased-emails/67273>\
**Category:** Product Support\
**Created:** [2017 年 8 月 1 日午後 11:08 UTC](https://meta.discourse.org/t/sso-authentication-issue-with-differently-cased-emails/67273 "2017-08-01T23:08:02Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [2017 年 8 月 2 日午前 2:07 UTC](https://meta.discourse.org/t/sso-authentication-issue-with-differently-cased-emails/67273/4 "2017-08-02T02:07:42Z")

</div>

> [@codinghorror](#):
>
> Make sure your code is case independent for many-to-one emails to users.

@LeoMcA added an unique index so we’re safe on this front.

> <https://github.com/discourse/discourse/blob/3538b63305582d53dabd1476170d99387fc4e97c/db/migrate/20170717084947_create_user_emails.rb#L15>

---

_[View the full topic](https://meta.discourse.org/t/sso-authentication-issue-with-differently-cased-emails/67273)._
