devise_multiple_token_auth 0.0.19 → 0.0.21
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b6b073a74895ce894b2aae15bc9822f7f80c1d9
|
4
|
+
data.tar.gz: 6b0c56eac3aad3dbe3dc33d9c2c824cfcb4bd33d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86406db0ac866ceace825c48102bbd0d69d1285174df9d597da7beb44141869058afe284c229cfefe24ef5f5d4dfbc3b08d5505b65c9c980329792d6fc24127d
|
7
|
+
data.tar.gz: e016622e772e68372f50b2911db22fd6eb5e8cedcf5f8630271ac247019f1fb2559b7282b57595cd48769ed38086236829140449ada6148526c1cec35d86e79b
|
@@ -8,11 +8,12 @@ module DeviseMultipleTokenAuth
|
|
8
8
|
end
|
9
9
|
@device = Device.find_by_auth_token(token)
|
10
10
|
if !@device || @device.expired? || @device.user == nil
|
11
|
-
render
|
11
|
+
render nothing: true, status: :unauthorized
|
12
12
|
else
|
13
13
|
@device.expires_at = Time.now + (DeviseMultipleTokenAuth.device_expires_in_days || 14).days
|
14
14
|
@device.save
|
15
15
|
sign_in(@device.user)
|
16
|
+
@current_user = @device.user
|
16
17
|
end
|
17
18
|
end
|
18
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_multiple_token_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Juncker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|