devise_capturable 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/devise_capturable/strategy.rb +5 -4
- data/lib/devise_capturable/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee3008b20cec676dd23e78e310b6729d63b843be
|
4
|
+
data.tar.gz: 2ab8013bdef1576fee64eca1522138c62d6c051f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d96c2b89ffcfa025f8eb62f396262595e788e9d7551d15e9a0b60289e0b8eae7815aebc8bc9e2ea0df471d61c65df57b5aab289f92709a8301b39f6b947192c8
|
7
|
+
data.tar.gz: 62c9bf01187d71892d4b7d7187ce989cf5bf5fa76be072c16ca412ea9681a53a10d6c980c6b9df3058cef5559ce2187cc0f639eb80dfed2a1afc1881d44a6d9f
|
@@ -45,13 +45,14 @@ module Devise
|
|
45
45
|
|
46
46
|
new_token = Devise::Capturable::API.refresh_token(token['refresh_token'])
|
47
47
|
return fail!(:capturable_user_error) unless new_token['stat'] == 'ok'
|
48
|
-
|
48
|
+
|
49
49
|
token_string = new_token["access_token"].to_s
|
50
|
-
puts "token is: #{token_string.inspect }"
|
51
|
-
|
52
|
-
redirect!(Devise.capturable_redirect_if_no_user, :token => token_string)
|
53
50
|
fail!(:capturable_user_missing)
|
54
51
|
|
52
|
+
# if we redirect with a hash params object, it ends up repeating the params
|
53
|
+
# so we construct the URL ourselves.
|
54
|
+
redirect!("#{Devise.capturable_redirect_if_no_user}?token=#{token_string}")
|
55
|
+
|
55
56
|
# else fail
|
56
57
|
else
|
57
58
|
fail!(:capturable_user_missing)
|