Method: SimpleRecord::Password.check
- Defined in:
- lib/simple_record/password.rb
.check(password, store) ⇒ Object
Checks the password against the stored password
16 17 18 19 20 21 22 23 24 |
# File 'lib/simple_record/password.rb', line 16 def Password.check(password, store) hash = self.get_hash(store) salt = self.get_salt(store) if self.hash(password, salt) == hash true else false end end |