diff --git a/app.rb b/app.rb index 82d621f3..4717fcf2 100644 --- a/app.rb +++ b/app.rb @@ -77,7 +77,7 @@ before do # Skips the CSRF/validation check for stripe web hooks elsif email_not_validated? && !(request.path =~ /^\/site\/.+\/confirm_email|^\/settings\/change_email|^\/signout|^\/welcome|^\/supporter/) redirect "/site/#{current_site.username}/confirm_email" - elsif current_site && current_site.phone_verification_needed? && !(request.path =~ /^\/site\/.+\/confirm_phone/) + elsif !email_not_validated? && current_site && current_site.phone_verification_needed? && !(request.path =~ /^\/site\/.+\/confirm_phone/) redirect "/site/#{current_site.username}/confirm_phone" else content_type :html, 'charset' => 'utf-8'