devise-stormpath 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,10 @@ module Devise
14
14
  attr_reader :current_password
15
15
  end
16
16
 
17
+ def active_for_authentication?
18
+ super && !%w{DISABLED BLOCKED}.include?(status)
19
+ end
20
+
17
21
  module ClassMethods
18
22
  #TODO support login with email
19
23
  def authenticate_with_stormpath(attributes={})
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Stormpath
3
- VERSION = "0.2.1"
3
+ VERSION = "0.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-stormpath
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: