mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 16:21:52 +02:00
fix signout, add press article, add dns bl client
This commit is contained in:
parent
7f354bf8f6
commit
9fa4cc0e13
4 changed files with 16 additions and 5 deletions
4
app.rb
4
app.rb
|
@ -75,9 +75,9 @@ before do
|
|||
content_type :json
|
||||
elsif request.path.match /^\/webhooks\//
|
||||
# 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|^\/signout/)
|
||||
redirect "/site/#{current_site.username}/confirm_email"
|
||||
elsif !email_not_validated? && 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|^\/signout/)
|
||||
redirect "/site/#{current_site.username}/confirm_phone"
|
||||
else
|
||||
content_type :html, 'charset' => 'utf-8'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue