devise_multiple_token_auth 0.0.4 → 0.0.5
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: 22146ddf15c7d422ce8cd6ff4412b3847bbf15f5
|
4
|
+
data.tar.gz: a07c8d5052322abbcd1c1bb35d8519656778551e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0c27f17e238151ac6b8eb6ccccda91f02730601bdb1f787963a8a9b7657d8de2def4a2f6711c9bd38405ae02d5372556018c9c3bca4c58039d2be7d75a7b54f
|
7
|
+
data.tar.gz: 5b7d25aa907ec75efcf6d405322f74837cff69f3d035455e5fefb3d824cfa31e3ec39147f7f05ad7629cbc8fd93468765734a86f7967cdf8bbc07805f5b75805
|
@@ -8,10 +8,7 @@ module DeviseMultipleTokenAuth
|
|
8
8
|
end
|
9
9
|
@device = Device.find_by_auth_token(token)
|
10
10
|
if !@device || @device.expired? || @device.user == nil
|
11
|
-
|
12
|
-
format.html { redirect_to new_user_session_path }
|
13
|
-
format.json { render status: :unauthorized, nothing: true }
|
14
|
-
end
|
11
|
+
render json: { }, status: :unauthorized
|
15
12
|
else
|
16
13
|
@device.expires_at = Time.now + (DeviseMultipleTokenAuth.device_expires_in_days || 14).days
|
17
14
|
@device.save
|
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.5
|
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-09-
|
11
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|