authentication-zero 2.15.1 → 2.15.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57381cfe8cb5f43de1b8d8946ef872528166b9d5919d3fa612d811aded172697
|
4
|
+
data.tar.gz: 98b95b24b18b7f5f8113194712261ac840405fd5df47ffd1a51e7df45e9242b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9537217a53d7700bdb232779bb4d1c7706d045646648ec6788b9cb11e32da79b18f127d9d9f998239b7fcc74aa9c76e321d564e443b7a772c7c4cde4e30dfc3
|
7
|
+
data.tar.gz: 759a0cbab559acb22c223c990a0d169420c1f0b7f1c75606737ef6703fcf4008221073f5817fdf215b1c139522e45f4bf9381fa84a5b3fbff23ff3209e3c75b9
|
data/Gemfile.lock
CHANGED
@@ -26,15 +26,19 @@ class User < ApplicationRecord
|
|
26
26
|
self.verified = false
|
27
27
|
end
|
28
28
|
|
29
|
+
after_create_commit do
|
30
|
+
UserMailer.with(user: self).email_verification.deliver_later
|
31
|
+
end
|
32
|
+
|
29
33
|
after_update if: :password_digest_previously_changed? do
|
30
34
|
sessions.where.not(id: Current.session).destroy_all
|
31
35
|
end
|
32
36
|
|
33
|
-
|
37
|
+
after_update if: :email_previously_changed? do
|
34
38
|
UserMailer.with(user: self).email_verification.deliver_later
|
35
39
|
end
|
36
40
|
<%- if options.trackable? %>
|
37
|
-
|
41
|
+
after_update if: :email_previously_changed? do
|
38
42
|
events.create! action: "email_verification_requested"
|
39
43
|
end
|
40
44
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authentication-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.15.
|
4
|
+
version: 2.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nixon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|