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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31848f572c8380345caeadef53ae0ee19ef029f3e7db96b2a30d2d4a3252c1b2
|
4
|
+
data.tar.gz: 30221de571208310dd56224c9abb88a0d3b19c5c00203e93116936648ac4098d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdd553ce8ec4ddb9829585548ea28905b3355f1bc31808e7d60827fe7543c04e9287dfd9742fe123f75e2335e67a2421e96fe3aaefc53559b730b1954b358dab
|
7
|
+
data.tar.gz: 92256ff69b1bddcb7c17a0aff804da2a4c0740683d8d392960b9054a6dd51997e04268f1368b49b02b61f80bd12c28a0c437d98958a609ad6a2a619186ee1e01
|
data/Gemfile
CHANGED
@@ -21,7 +21,7 @@ module Devise
|
|
21
21
|
|
22
22
|
def authenticate!
|
23
23
|
begin
|
24
|
-
data =
|
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.
|
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-
|
11
|
+
date: 2021-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|