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={})
|