rails_jwt_auth 0.23.0 → 0.23.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/mailers/rails_jwt_auth/mailer.rb +8 -8
- data/app/models/concerns/rails_jwt_auth/confirmable.rb +2 -2
- data/app/models/concerns/rails_jwt_auth/invitable.rb +1 -1
- data/app/models/concerns/rails_jwt_auth/recoverable.rb +2 -2
- data/lib/rails_jwt_auth/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30dd056bd39f52415bc62c4d1ff401cb0c5eae1e8a3d106e462cb264ebcd2565
|
4
|
+
data.tar.gz: 95dd99f7ce26037ce8aa6e64782cb004c4fa3782468645a41d3fbeb317e4fecc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 936f43e24f01fc3e05bb36dc6e17335b12e319fbbdcc75953630e5c2f542f8a94f8d1c49d667cdf7e138a845ad2235c72a81c09712e987a53643d4d8741d0aad
|
7
|
+
data.tar.gz: 4fc9640ee03f5390a1b64b915d7fe761164f5e9fa859b4c3d35c05a953329228f2f0a7c81c3d1221fc9150783d6089a26998a39829b9527b686a19bb67c5c2b3
|
@@ -2,8 +2,8 @@ if defined?(ActionMailer)
|
|
2
2
|
class RailsJwtAuth::Mailer < ApplicationMailer
|
3
3
|
default from: RailsJwtAuth.mailer_sender
|
4
4
|
|
5
|
-
def confirmation_instructions(
|
6
|
-
@user =
|
5
|
+
def confirmation_instructions(id)
|
6
|
+
@user = RailsJwtAuth.model.find(id)
|
7
7
|
|
8
8
|
if RailsJwtAuth.confirmation_url
|
9
9
|
url, params = RailsJwtAuth.confirmation_url.split('?')
|
@@ -19,8 +19,8 @@ if defined?(ActionMailer)
|
|
19
19
|
mail(to: @user.unconfirmed_email || @user.email, subject: subject)
|
20
20
|
end
|
21
21
|
|
22
|
-
def reset_password_instructions(
|
23
|
-
@user =
|
22
|
+
def reset_password_instructions(id)
|
23
|
+
@user = RailsJwtAuth.model.find(id)
|
24
24
|
|
25
25
|
if RailsJwtAuth.reset_password_url
|
26
26
|
url, params = RailsJwtAuth.reset_password_url.split('?')
|
@@ -36,8 +36,8 @@ if defined?(ActionMailer)
|
|
36
36
|
mail(to: @user.email, subject: subject)
|
37
37
|
end
|
38
38
|
|
39
|
-
def set_password_instructions(
|
40
|
-
@user =
|
39
|
+
def set_password_instructions(id)
|
40
|
+
@user = RailsJwtAuth.model.find(id)
|
41
41
|
|
42
42
|
if RailsJwtAuth.set_password_url
|
43
43
|
url, params = RailsJwtAuth.set_password_url.split('?')
|
@@ -53,8 +53,8 @@ if defined?(ActionMailer)
|
|
53
53
|
mail(to: @user.email, subject: subject)
|
54
54
|
end
|
55
55
|
|
56
|
-
def send_invitation(
|
57
|
-
@user =
|
56
|
+
def send_invitation(id)
|
57
|
+
@user = RailsJwtAuth.model.find(id)
|
58
58
|
|
59
59
|
if RailsJwtAuth.accept_invitation_url
|
60
60
|
url, params = RailsJwtAuth.accept_invitation_url.split '?'
|
@@ -10,7 +10,7 @@ module RailsJwtAuth
|
|
10
10
|
self.confirmation_sent_at = Time.now
|
11
11
|
return false unless save
|
12
12
|
|
13
|
-
mailer = Mailer.confirmation_instructions(
|
13
|
+
mailer = Mailer.confirmation_instructions(id)
|
14
14
|
RailsJwtAuth.deliver_later ? mailer.deliver_later : mailer.deliver
|
15
15
|
true
|
16
16
|
end
|
@@ -67,7 +67,7 @@ module RailsJwtAuth
|
|
67
67
|
self.confirmation_token = SecureRandom.base58(24)
|
68
68
|
self.confirmation_sent_at = Time.now
|
69
69
|
|
70
|
-
mailer = Mailer.confirmation_instructions(
|
70
|
+
mailer = Mailer.confirmation_instructions(id)
|
71
71
|
RailsJwtAuth.deliver_later ? mailer.deliver_later : mailer.deliver
|
72
72
|
end
|
73
73
|
end
|
@@ -10,7 +10,7 @@ module RailsJwtAuth
|
|
10
10
|
self.reset_password_sent_at = Time.now
|
11
11
|
return false unless save
|
12
12
|
|
13
|
-
mailer = Mailer.reset_password_instructions(
|
13
|
+
mailer = Mailer.reset_password_instructions(id)
|
14
14
|
RailsJwtAuth.deliver_later ? mailer.deliver_later : mailer.deliver
|
15
15
|
end
|
16
16
|
|
@@ -25,7 +25,7 @@ module RailsJwtAuth
|
|
25
25
|
self.reset_password_sent_at = Time.now
|
26
26
|
return false unless save
|
27
27
|
|
28
|
-
mailer = Mailer.set_password_instructions(
|
28
|
+
mailer = Mailer.set_password_instructions(id)
|
29
29
|
RailsJwtAuth.deliver_later ? mailer.deliver_later : mailer.deliver
|
30
30
|
true
|
31
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_jwt_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.23.
|
4
|
+
version: 0.23.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rjurado
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt
|