Usernames in URLs should not be case-sensitive (#113)

Amateur hour mistake
This commit is contained in:
Justin Edmund 2023-07-02 00:31:11 -07:00 committed by GitHub
parent f81f43e501
commit 3104990de9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,7 +171,7 @@ module Api
# Specify whitelisted properties that can be modified.
def set
@user = User.where('username = ?', params[:id]).first
@user = User.where('username = ?', params[:id].downcase).first
end
def set_by_id