mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-01 02:05:03 -05:00
Strip usernames of surrounding whitespace in the login api.
This commit is contained in:
@@ -868,6 +868,8 @@ class VThrottledLogin(VLogin):
|
||||
self.vlength = VLength("user", max_length=100)
|
||||
|
||||
def run(self, username, password):
|
||||
if username:
|
||||
username = username.strip()
|
||||
username = self.vlength.run(username)
|
||||
|
||||
self.vdelay.run()
|
||||
|
||||
Reference in New Issue
Block a user