authentication-zero 2.16.0 → 2.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +0 -5
- data/lib/authentication_zero/version.rb +1 -1
- data/lib/generators/authentication/templates/controllers/api/identity/email_verifications_controller.rb.tt +1 -2
- data/lib/generators/authentication/templates/models/user.rb.tt +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dd52b852437d965454115d4fbb2d80f6b97f04dbe0d77e8a4524a4fb6052a89
|
4
|
+
data.tar.gz: 297f4bc57d8612d77c89eae113b558014f9b3b174eeebd13c2c6d73d78d7cad5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e43b09a82b8a63605a3c7ddb2d139890c5bd5153db25b8c5a535f570cf796a12f1e2520add1231bf72d95b4821871c0da72adc21e6a09b4597e5e9e65db9407f
|
7
|
+
data.tar.gz: d2d50163045d57ee8b87a0277b0f023d4d35d603637bc94bcae7c78f914afde8131ba725095627256fe93f77ca5484adb8b2247cf238b80bc3e57175db625b38
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -40,8 +40,6 @@ The purpose of authentication zero is to generate a pre-built authentication sys
|
|
40
40
|
|
41
41
|
## Installation
|
42
42
|
|
43
|
-
Add this lines to your application's Gemfile:
|
44
|
-
|
45
43
|
```
|
46
44
|
$ bundle add authentication-zero
|
47
45
|
```
|
@@ -50,9 +48,6 @@ $ bundle add authentication-zero
|
|
50
48
|
|
51
49
|
```
|
52
50
|
$ rails generate authentication
|
53
|
-
```
|
54
|
-
|
55
|
-
```
|
56
51
|
$ bundle install
|
57
52
|
```
|
58
53
|
|
@@ -19,10 +19,10 @@ class User < ApplicationRecord
|
|
19
19
|
<%- end -%>
|
20
20
|
|
21
21
|
before_validation do
|
22
|
-
self.email = email
|
22
|
+
self.email = email&.downcase&.strip
|
23
23
|
end
|
24
24
|
|
25
|
-
before_validation if:
|
25
|
+
before_validation if: -> { email_changed? && persisted? } do
|
26
26
|
self.verified = false
|
27
27
|
end
|
28
28
|
|