Module: SimplestAuth::Model::InstanceMethods
- Includes:
- BCrypt
- Defined in:
- lib/simplest_auth/model.rb
Constant Summary collapse
- RecordNotFound =
Class.new(StandardError)
Instance Method Summary collapse
Instance Method Details
#authentic?(password) ⇒ Boolean
77 78 79 |
# File 'lib/simplest_auth/model.rb', line 77 def authentic?(password) Password.new(self.crypted_password) == password rescue false end |