adds residence verification

This commit is contained in:
rgarcia
2015-08-27 23:53:49 +02:00
parent 61b7ff5e21
commit 07180bcd04
5 changed files with 113 additions and 0 deletions

View File

@@ -51,4 +51,10 @@ class ApplicationController < ActionController::Base
redirect_to finish_signup_path
end
end
def verify_resident!
unless current_user.residence_verified?
redirect_to new_residence_path, alert: t('verification.residence.alert.unconfirmed_residency')
end
end
end