lol_auth 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/lol_auth/users_controller.rb +3 -3
- data/lib/lol_auth/version.rb +1 -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: 45aa54b05630d2dcf79c56561d7833e1485dd812120f57c22f2d580ce2bc99b2
|
4
|
+
data.tar.gz: ff1dc1715881bbb524ebca3e6ee68e8dd4098041a28e9f3d62da04be813a501c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc4196a1494b308e3507ce5c164252fac8a6d5dfe1230284019997ac6f85980d2d702766ab9da7170cbf849abf6c0dc2b427b5f71f707fcb12a74aa6c5de6498
|
7
|
+
data.tar.gz: 3c1786f5abc253d6ef28ff8b984f248b113c5fa82932d0b4bc30e82a1f587ae1b09d5a4c18ea5b146d30490485385fdecd0d4ad69b64b4dc2b9df55c38440456
|
@@ -9,7 +9,7 @@ module LolAuth
|
|
9
9
|
|
10
10
|
@user = @manager.login_with_token(params[:token])
|
11
11
|
|
12
|
-
if @user
|
12
|
+
if @user.present?
|
13
13
|
sign_in(:user, @user, store: false, bypass: true)
|
14
14
|
|
15
15
|
response.headers.merge!(@manager.auth_header)
|
@@ -25,7 +25,7 @@ module LolAuth
|
|
25
25
|
|
26
26
|
@user = @manager.process()
|
27
27
|
|
28
|
-
if @user
|
28
|
+
if @user.present?
|
29
29
|
sign_in(:user, @user, store: false, bypass: true)
|
30
30
|
|
31
31
|
response.headers.merge!(@manager.auth_header)
|
@@ -41,7 +41,7 @@ module LolAuth
|
|
41
41
|
|
42
42
|
@user = @manager.process()
|
43
43
|
|
44
|
-
if @user
|
44
|
+
if @user.present?
|
45
45
|
sign_in(:user, @user, store: false, bypass: true)
|
46
46
|
|
47
47
|
response.headers.merge!(@manager.auth_header)
|
data/lib/lol_auth/version.rb
CHANGED