Class: QuoVadis::RecoveryCode
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- QuoVadis::RecoveryCode
- Defined in:
- app/models/quo_vadis/recovery_code.rb
Instance Method Summary collapse
-
#authenticate_code(plaintext_code) ⇒ Object
Returns true and destroys this instance if the plaintext code is authentic, false otherwise.
Instance Method Details
#authenticate_code(plaintext_code) ⇒ Object
Returns true and destroys this instance if the plaintext code is authentic, false otherwise.
11 12 13 |
# File 'app/models/quo_vadis/recovery_code.rb', line 11 def authenticate_code(plaintext_code) !!(destroy if super) end |