mirror of
https://github.com/neocities/neocities.git
synced 2025-08-01 23:31:52 +02:00
Mandate email validation for free accounts. Be sure to set EMAIL_VALIDATION_CUTOFF_DATE before deploy
This commit is contained in:
parent
cef1611003
commit
a2a6a40438
19 changed files with 178 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue