mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
fix redirect logic
This commit is contained in:
parent
ffaca51d36
commit
7f354bf8f6
1 changed files with 1 additions and 1 deletions
2
app.rb
2
app.rb
|
@ -77,7 +77,7 @@ before do
|
||||||
# Skips the CSRF/validation check for stripe web hooks
|
# Skips the CSRF/validation check for stripe web hooks
|
||||||
elsif email_not_validated? && !(request.path =~ /^\/site\/.+\/confirm_email|^\/settings\/change_email|^\/signout|^\/welcome|^\/supporter/)
|
elsif email_not_validated? && !(request.path =~ /^\/site\/.+\/confirm_email|^\/settings\/change_email|^\/signout|^\/welcome|^\/supporter/)
|
||||||
redirect "/site/#{current_site.username}/confirm_email"
|
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"
|
redirect "/site/#{current_site.username}/confirm_phone"
|
||||||
else
|
else
|
||||||
content_type :html, 'charset' => 'utf-8'
|
content_type :html, 'charset' => 'utf-8'
|
||||||
|
|
Loading…
Add table
Reference in a new issue