mirror of
https://github.com/neocities/neocities.git
synced 2025-07-22 10:36:07 +02:00
major refactor of supporter structure
This commit is contained in:
parent
dadeb778c9
commit
2c88c62cbc
45 changed files with 440 additions and 1704 deletions
2
app.rb
2
app.rb
|
@ -30,7 +30,7 @@ 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|^\/plan/)
|
||||
elsif email_not_validated? && !(request.path =~ /^\/site\/.+\/confirm_email|^\/settings\/change_email|^\/signout|^\/welcome|^\/supporter/)
|
||||
redirect "/site/#{current_site.username}/confirm_email"
|
||||
else
|
||||
content_type :html, 'charset' => 'utf-8'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue