JonPSmith / AuthPermissions.AspNetCore

This library provides extra authorization and multi-tenant features to an ASP.NET Core application.
https://www.thereformedprogrammer.net/finally-a-library-that-improves-role-authorization-in-asp-net-core/
MIT License
808 stars 161 forks source link

Emails should be normalised, as the Postgres database is case sensative #35

Closed JonPSmith closed 2 years ago

JonPSmith commented 2 years ago

In the current version of AuthP (3.2.0) the email of a user is stored as the user provides it. But an email is NOT case sensitive. This will be a problem as Postgres is case sensative.

The simplest way to do this is add a .Lower to the email in the AuthUser class

Things to do