Skip to content

Commit

Permalink
Make emails case insensitive (#886)
Browse files Browse the repository at this point in the history
* Make emails case insensitive

* Set license-file

* Update .sqlx

* Bump version
  • Loading branch information
moubctez authored Dec 4, 2024
1 parent a216db8 commit 1356912
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 57 deletions.

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

0 comments on commit 1356912

Please sign in to comment.