Usernames in URLs should not be case-sensitive (#113)
Amateur hour mistake
This commit is contained in:
parent
f81f43e501
commit
3104990de9
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue