Skip to content

Commit

Permalink
Users: Disallow proxy signups.
Browse files Browse the repository at this point in the history
  • Loading branch information
nottalulah committed Jun 15, 2024
1 parent 67a6a2e commit 1a59ebc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def profile
end

def create
raise User::PrivilegeError if Danbooru::IpAddress.new(request.remote_ip).is_proxy?
user_verifier = UserVerifier.new(CurrentUser.user, request)

@user = authorize User.new(
Expand Down

0 comments on commit 1a59ebc

Please sign in to comment.