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: 86243065a340bf99470a75fb69f16e1841a3513f
4
- data.tar.gz: f233be2ed5217097957e45701746be876428504a
3
+ metadata.gz: bca93333f4c37dbd3dd906f70c3342782407e3f4
4
+ data.tar.gz: e049172d67606c5cfad757e8f85ada512c1f185c
5
5
  SHA512:
6
- metadata.gz: afe13abb1108c991548184e18f63957ef110f356258525e1db4d167fa5bb030d9e4677b24f8e3ee02b1015caca6b679da236c6e81fb3240bd4f8d81941ecbfcd
7
- data.tar.gz: 30c13093311ee85c6a7fbb8843f78e388e583e5972cba61aaecb79409e88c4f7f3d1fc27d50a4672d6e418a239f54302e86788335aa20a5572d8752d48a1dfce
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
 
@@ -1,3 +1,3 @@
1
1
  module RailsJwtAuth
2
- VERSION = '0.7.1'
2
+ VERSION = '0.8.0'
3
3
  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.7.1
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-06 00:00:00.000000000 Z
11
+ date: 2017-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails