Usernames in URLs should not be case-sensitive

Amateur hour mistake
This commit is contained in:
Justin Edmund 2023-07-02 00:30:52 -07:00
parent f81f43e501
commit d13cfec3b5

View file

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