Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make emails case insensitive #886

Merged
merged 4 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 40 additions & 40 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "defguard"
version = "1.1.3"
version = "1.1.4"
edition = "2021"
license = "Apache-2.0"
license-file = "LICENSE.md"
homepage = "https://defguard.net/"
repository = "https://github.com/DefGuard/defguard"
rust-version = "1.80"
Expand Down
2 changes: 2 additions & 0 deletions migrations/20241204113104_case_insensitive_email.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DROP INDEX email_unique_idx;
ALTER TABLE "user" ADD CONSTRAINT "user_email_key" UNIQUE (email);
2 changes: 2 additions & 0 deletions migrations/20241204113104_case_insensitive_email.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE "user" DROP CONSTRAINT "user_email_key";
CREATE UNIQUE INDEX email_unique_idx on "user" (LOWER(email));
Loading
Loading