rails_jwt_auth 0.7.1 → 0.8.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bca93333f4c37dbd3dd906f70c3342782407e3f4
|
4
|
+
data.tar.gz: e049172d67606c5cfad757e8f85ada512c1f185c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ad3e2570b0c8c3948d1a38fffc011914bf52fecffa4d4ca2ec8a187c91d1dc5417aaba5de6cafdb3e9ef1d4f9c3bad09cb1d7d94c71ecfe030e4aaff13d847e
|
7
|
+
data.tar.gz: 73b4e8bac9ffc07b629c00108f9412d47f13a31df46cafbe8e2850de6def5553f2c96852ff9bf4370d87348fb3afe6d4bcca4b141f701e93b197c8f4b9277377
|
@@ -1,6 +1,11 @@
|
|
1
1
|
module RailsJwtAuth
|
2
2
|
module Recoverable
|
3
3
|
def send_reset_password_instructions
|
4
|
+
if self.class.ancestors.include?(RailsJwtAuth::Confirmable) && !confirmed?
|
5
|
+
errors.add(:email, I18n.t('rails_jwt_auth.errors.unconfirmed'))
|
6
|
+
return false
|
7
|
+
end
|
8
|
+
|
4
9
|
self.reset_password_token = SecureRandom.base58(24)
|
5
10
|
self.reset_password_sent_at = Time.now
|
6
11
|
|
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.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rjurado
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|