devise_challenge_questionable 0.1.1 → 0.1.2

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
- SHA1:
3
- metadata.gz: be8f8f0325e99887de470960d55a3fc9c1b37ec7
4
- data.tar.gz: fdaa87f16cfc9d30b8b20406525e3e5b193cbb9e
5
2
  SHA512:
6
- metadata.gz: d81bc9b249d222646417c525eaad2c68f87d404a0c49d777a02dc33bcf677c1bf0e40b6d8e65307c590dd5b793c35caf914d8a366a6fc548e43e8d01f7091066
7
- data.tar.gz: dfefac2714845f6aff75bd17c11b0e515a821bf47bb2e9956033d9386bbadc43febe77289038f5d35c566c8344609ee5b797e9f70d808589abb5688715676c8d
3
+ metadata.gz: a032acd8c06fc6a969d5211b301a01d0c06cbdd401bf9590aad7f4b2f1176c0fa1a511fd2a41b5dba39ee5bd126c563582bae5656b90face681c445c6f09d6a9
4
+ data.tar.gz: 2c227dd0209959c9f3470795c486478ffda5fd480db8afa18db3c96ebdb9528589b36e153c1e37506484179ab0e5078cfc67dc73f1ce71dbb867e7fb36c177c0
5
+ SHA1:
6
+ metadata.gz: 6d27ff4286361e800bdefec8d14dc4ccac6fc5fa
7
+ data.tar.gz: 24439532250c4be4f6c0e5b6b20a732184710f9e
@@ -2,4 +2,7 @@ Warden::Manager.after_authentication do |user, auth, options|
2
2
  if user.respond_to?(:need_challenge_questions?)
3
3
  auth.session(options[:scope])[:need_challenge_questions] = user.need_challenge_questions?(auth.request)
4
4
  end
5
- end
5
+ if Devise.respond_to?(:token_authentication_key) && auth.env["action_dispatch.request.parameters"].keys.include?(Devise.token_authentication_key.to_s)
6
+ auth.session(options[:scope])[:need_challenge_questions] = false
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module DeviseChallengeQuestionable
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_challenge_questionable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kennedy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2014-01-23 00:00:00 Z
12
+ date: 2014-02-13 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails