rack-ninja_auth 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/ninja_auth.rb +2 -2
- data/lib/rack/ninja_auth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 363a386ae679ca746129260f1b12b1befff29900
|
4
|
+
data.tar.gz: b5a21e2ff2832efe5532e76ac85d3b9301f22921
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b886ef990c3c410a3b343843bd33073f293376a9fb0aa677221a91279c5b8678cd46eccc0b539d5b52f498770ebd65fda41afbdc093af42675a6c4f28b981417
|
7
|
+
data.tar.gz: b64a46c856f1903e8a2a4e80a1785c7820cb0ee6a695fcbdcfe9e3a4585a77aee0a8d5e443cd815ddc6d66719f582f6e917ce9913994c30da9fcd58f0da1e83c
|
data/lib/rack/ninja_auth.rb
CHANGED
@@ -58,7 +58,7 @@ module Rack
|
|
58
58
|
private
|
59
59
|
|
60
60
|
def authenticate!(email:)
|
61
|
-
session[SESSION_KEY] = { email
|
61
|
+
session[SESSION_KEY] = { 'email' => email }
|
62
62
|
end
|
63
63
|
|
64
64
|
def allowable_email?(email)
|
@@ -67,7 +67,7 @@ module Rack
|
|
67
67
|
|
68
68
|
def is_authenticated?
|
69
69
|
fields = session[SESSION_KEY] || {}
|
70
|
-
allowable_email?(fields[
|
70
|
+
allowable_email?(fields['email'])
|
71
71
|
end
|
72
72
|
|
73
73
|
def is_unprotected_request?
|