lib/vacman_controller/token.rb
def verify(otp)
      verify!(otp)
    rescue VacmanController::Error
      false
    end
# Verify a password. This is the usecase a user sends you an OTP
# generated by their token and we have to verify it.
#
# == Parameters:
# otp::
#   The OTP provided by the user
#
# == Returns:
# true if the password is valid, false otherwise
#
# ATTENTION: it is very important to persist the token hash
# afterwards.
#
Verify a password. This is the usecase a user sends you an OTP
generated by their token and we have to verify it.

:
The OTP provided by the user

true if the password is valid, false otherwise

it is very important to persist the token hash
afterwards.
Verify a password . This is the usecase a user sends you an OTP generated by their token and we have to verify it . : The OTP provided by the user true if the password is valid false otherwise it is very important to persist the token hash afterwards .
def verify(otp)
      verify!(otp)
    rescue VacmanController::Error
      false
    end
def verify ( otp ) verify! ( otp ) rescue VacmanController :: Error false end
Verify a password.
Verify a password .
otp