authentication-zero 0.0.17 → 0.0.18
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: 5f48325c2122dac114a46a7949ba07ab7693872f198076dc7bcfae87b31441c1
|
4
|
+
data.tar.gz: 4117615d796766e17a773707f2dba9616eaf1ca7a59c007c831431d9b09e18eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6c76a600c3a82bb51bdb638bc1d114aef80ed13b2a252af3fac6bd4e1cd05992004a9bb6ec33457cb56e0fa93a3f48209acfb5d9c41c1ca7f9542104166e01b
|
7
|
+
data.tar.gz: 277192f60768925670f1580c13a0f593e27f92656987171818e09edff379b7571b88abcf0460ae9961477557bfe186e7b1a4e05e46c1ff24f760e2d0ff959301
|
data/Gemfile.lock
CHANGED
@@ -60,7 +60,7 @@ class AuthenticationGenerator < Rails::Generators::NamedBase
|
|
60
60
|
private
|
61
61
|
def authenticate
|
62
62
|
if #{singular_table_name} = authenticate_with_http_token { |t, _| #{class_name}.find_signed_session_token(t) }
|
63
|
-
Current
|
63
|
+
Current.#{singular_table_name} = #{singular_table_name}
|
64
64
|
else
|
65
65
|
request_http_token_authentication
|
66
66
|
end
|
@@ -74,7 +74,7 @@ class AuthenticationGenerator < Rails::Generators::NamedBase
|
|
74
74
|
private
|
75
75
|
def authenticate
|
76
76
|
if #{singular_table_name} = #{class_name}.find_by_session_token(cookies.signed[:session_token])
|
77
|
-
Current
|
77
|
+
Current.#{singular_table_name} = #{singular_table_name}
|
78
78
|
else
|
79
79
|
redirect_to sign_in_path, alert: "You need to sign in or sign up before continuing"
|
80
80
|
end
|