mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Make the username check case sensitive when deleting accounts.
This commit is contained in:
@@ -622,7 +622,7 @@ class ApiController(RedditController):
|
||||
"""
|
||||
/prefs/delete. Check the username/password and confirmation.
|
||||
"""
|
||||
if username != c.user.name:
|
||||
if username and username.lower() != c.user.name.lower():
|
||||
c.errors.add(errors.NOT_USER, field="user")
|
||||
|
||||
if not confirm:
|
||||
|
||||
Reference in New Issue
Block a user