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: 6cca55cb2747d081ac95812600ef98c9ee21be3b
4
- data.tar.gz: bb7d9c60ea3f07bc61b5d0d7b16cf93830501255
3
+ metadata.gz: 3b6b073a74895ce894b2aae15bc9822f7f80c1d9
4
+ data.tar.gz: 6b0c56eac3aad3dbe3dc33d9c2c824cfcb4bd33d
5
5
  SHA512:
6
- metadata.gz: ec4e29c955d6aa160759ef45b1b703332b667c311596fbdb9e8fef49b2b45614f99a69275d3ae1cc3b126c0dd4d6ab013cc96cc5f59de6a343fb6b7e5eea22b4
7
- data.tar.gz: dfc26f32f60c7e6a4af43a3f538e488107ae040dc000913e612811f1aa50f9c62abaaddc54f858e91dd60cb1a0ea365a7b1d584fa90806f3bd049c86724c1e35
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 json: { }, status: :unauthorized
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
@@ -1,3 +1,3 @@
1
1
  module DeviseMultipleTokenAuth
2
- VERSION = "0.0.19"
2
+ VERSION = "0.0.21"
3
3
  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.19
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-07 00:00:00.000000000 Z
11
+ date: 2015-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails