mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 09:34:57 +02:00
Set email validation grandfathering for May 16th. All new sites will need to validate email.
This commit is contained in:
parent
a2a6a40438
commit
f97ebd9781
4 changed files with 6 additions and 4 deletions
2
app.rb
2
app.rb
|
@ -28,7 +28,7 @@ before do
|
|||
@api = true
|
||||
content_type :json
|
||||
elsif request.path.match /^\/webhooks\//
|
||||
# Skips the CSRF 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|^\/plan/)
|
||||
redirect "/site/#{current_site.username}/confirm_email"
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue