Make the username check case sensitive when deleting accounts.

This commit is contained in:
Max Goodman
2011-12-13 10:39:37 -08:00
parent 591d4fbdba
commit 64806bcd2a

View File

@@ -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: