adds verification status methods to user
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
module Verification
|
||||
|
||||
def verification_email_sent?
|
||||
email_verification_token.present?
|
||||
end
|
||||
|
||||
def verification_sms_sent?
|
||||
unconfirmed_phone.present? && sms_confirmation_code.present?
|
||||
end
|
||||
|
||||
def verification_letter_sent?
|
||||
letter_requested_at.present? && letter_verification_code.present?
|
||||
end
|
||||
|
||||
def residence_verified?
|
||||
residence_verified_at.present?
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user