devise-passwordless 0.6.0 → 0.6.1

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: c015970325061c0bd86aac15d0a2a90e200cd036cbe85249503d16881fb07d9a
4
- data.tar.gz: 562b24b072376547b0e4bb6d503924dc58ad6d404a8e01397751af52e7a318cd
3
+ metadata.gz: 31848f572c8380345caeadef53ae0ee19ef029f3e7db96b2a30d2d4a3252c1b2
4
+ data.tar.gz: 30221de571208310dd56224c9abb88a0d3b19c5c00203e93116936648ac4098d
5
5
  SHA512:
6
- metadata.gz: f9bd36c841f32e9e017e0ae672636ef0e2708064b7d10b9e001af148f3e6fbeee3b3ee117a21ee1947c3d91f7a036b9e33079f28f15d582681d75bdac11d995d
7
- data.tar.gz: ab507245047decac1f9fbeb871dc54e7bef7e056c5c065550dcdedb1082ecf7db3c0caf911346b83ac93b636b2512b4735bdecf7754b9079327427b4160854f6
6
+ metadata.gz: fdd553ce8ec4ddb9829585548ea28905b3355f1bc31808e7d60827fe7543c04e9287dfd9742fe123f75e2335e67a2421e96fe3aaefc53559b730b1954b358dab
7
+ data.tar.gz: 92256ff69b1bddcb7c17a0aff804da2a4c0740683d8d392960b9054a6dd51997e04268f1368b49b02b61f80bd12c28a0c437d98958a609ad6a2a619186ee1e01
data/Gemfile CHANGED
@@ -10,6 +10,4 @@ gem "rake", "~> 10.0"
10
10
  group :test do
11
11
  gem "rspec", "~> 3.0"
12
12
  gem "generator_spec"
13
- gem "timecop"
14
- gem "pry"
15
13
  end
@@ -54,4 +54,4 @@ module Devise::Passwordless
54
54
  end
55
55
  end
56
56
  end
57
- end
57
+ end
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Passwordless
3
- VERSION = "0.6.0"
3
+ VERSION = "0.6.1"
4
4
  end
5
5
  end
@@ -21,7 +21,7 @@ module Devise
21
21
 
22
22
  def authenticate!
23
23
  begin
24
- data = Devise::Passwordless::LoginToken.decode(self.token)
24
+ data = decode_passwordless_token
25
25
  rescue Devise::Passwordless::LoginToken::InvalidOrExpiredTokenError
26
26
  fail!(:magic_link_invalid)
27
27
  return
@@ -50,6 +50,10 @@ module Devise
50
50
 
51
51
  private
52
52
 
53
+ def decode_passwordless_token
54
+ Devise::Passwordless::LoginToken.decode(self.token)
55
+ end
56
+
53
57
  # Sets the authentication hash and the token from params_auth_hash or http_auth_hash.
54
58
  def with_authentication_hash(auth_type, auth_values)
55
59
  self.authentication_hash, self.authentication_type = {}, auth_type
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-passwordless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abe Voelker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-26 00:00:00.000000000 Z
11
+ date: 2021-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise