Mandate email validation for free accounts. Be sure to set EMAIL_VALIDATION_CUTOFF_DATE before deploy

This commit is contained in:
Kyle Drake 2016-05-13 16:48:29 -04:00
parent cef1611003
commit a2a6a40438
19 changed files with 178 additions and 27 deletions

View file

@ -138,6 +138,7 @@ end
def require_api_credentials
if !request.env['HTTP_AUTHORIZATION'].nil?
init_api_credentials
api_error(403, 'email_not_validated', 'you need to validate your email address before using the API') if email_not_validated?
else
api_error_invalid_auth
end