mirror of
https://github.com/neocities/neocities.git
synced 2025-07-26 04:18:22 +02:00
cleanups for account validation
This commit is contained in:
parent
bb430d455f
commit
10acf8e7bb
4 changed files with 15 additions and 11 deletions
|
@ -240,7 +240,6 @@ 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
|
||||
|
@ -268,7 +267,7 @@ def init_api_credentials
|
|||
api_error_invalid_auth
|
||||
end
|
||||
|
||||
if site.nil? || site.is_banned || site.is_deleted
|
||||
if site.nil? || site.is_banned || site.is_deleted || !(site.required_validations_met?)
|
||||
api_error_invalid_auth
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue