Strip usernames of surrounding whitespace in the login api.

This commit is contained in:
Max Goodman
2011-12-07 16:24:47 -08:00
parent b022b78840
commit 591d4fbdba

View File

@@ -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()