lib/sorcery/model/submodules/brute_force_protection.rb
# /!\
# Moved out of protected for use like activate! in controller
# /!\
\
Moved out of protected for use like activate. in controller
\
\ Moved out of protected for use like activate . in controller \
def unlock!
            config = sorcery_config
            self.send(:"#{config.lock_expires_at_attribute_name}=", nil)
            self.send(:"#{config.failed_logins_count_attribute_name}=", 0)
            self.send(:"#{config.unlock_token_attribute_name}=", nil) unless config.unlock_token_mailer_disabled or config.unlock_token_mailer.nil?
            self.save!(:validate => false)
          end
def unlock! config = sorcery_config self . send ( :" #{ config . lock_expires_at_attribute_name } = " , nil ) self . send ( :" #{ config . failed_logins_count_attribute_name } = " , 0 ) self . send ( :" #{ config . unlock_token_attribute_name } = " , nil ) unless config . unlock_token_mailer_disabled or config . unlock_token_mailer . nil? self . save! ( :validate => false ) end
\
Moved out of protected for use like activate!
\ Moved out of protected for use like activate!