warden_cookie_session 0.1.2.19222 → 0.1.2.19245
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/warden/cookie_session/strategy.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f10cc58f56b8d90b41e47fd35d66ac1d4dce33c31359ba8345da0b44e80bd1f
|
4
|
+
data.tar.gz: '0229aa48d5ab4dd14107501fe9597e40d4e1c422d9199860b8e7a12c0b6a7d2e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0a72175769e3033ca06db4018f82c1a80a642295f15321f8a0b444fd4f21df188c81a9256a9beacfd3da1086f56d77b57daf9c28fb5547171883b52cb48fc12
|
7
|
+
data.tar.gz: f4fbdace6645e45bc684dc3dea0b710a6c115ba5962974d50774f235378db9d0efa7487317241842664a3a2c1068ba6112bc4e0697da6f87af00fbcf2b0eecee
|
@@ -7,7 +7,7 @@ class Warden::CookieSession::Strategy < ::Warden::Strategies::Base
|
|
7
7
|
rescue StandardError => e
|
8
8
|
logger.warn "Warden::CookieSession::Strategy#valid? failed: #{e}"
|
9
9
|
logger.debug { e.backtrace }
|
10
|
-
|
10
|
+
false
|
11
11
|
end
|
12
12
|
|
13
13
|
def store?
|
@@ -17,6 +17,7 @@ class Warden::CookieSession::Strategy < ::Warden::Strategies::Base
|
|
17
17
|
def authenticate!
|
18
18
|
key, salt = @key_salt || encrypted_cookie.get
|
19
19
|
record = Warden::CookieSession.config.fetch_record(key)
|
20
|
+
|
20
21
|
success!(record) if record && Warden::CookieSession.config.validate_record(record, salt)
|
21
22
|
rescue StandardError => e
|
22
23
|
logger.warn "Warden::CookieSession::Strategy failed: #{e}"
|