Set email validation grandfathering for May 16th. All new sites will need to validate email.

This commit is contained in:
Kyle Drake 2016-05-14 23:15:13 -04:00
parent a2a6a40438
commit f97ebd9781
4 changed files with 6 additions and 4 deletions

2
app.rb
View file

@ -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