Downcase username only if it is there
This commit is contained in:
parent
b8f6c0bbd4
commit
e9009ea609
1 changed files with 1 additions and 1 deletions
|
|
@ -311,7 +311,7 @@ class User
|
||||||
end
|
end
|
||||||
|
|
||||||
def downcase_username
|
def downcase_username
|
||||||
username.downcase!
|
username.downcase! if username
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue