Remove login_throttle() call.

This commit is contained in:
Jason Harvey
2014-04-28 21:32:54 -08:00
parent c275ab25a0
commit 32586deef6
2 changed files with 1 additions and 5 deletions

View File

@@ -1323,7 +1323,7 @@ class VThrottledLogin(VLogin):
return False
user = VLogin.run(self, username, password)
if login_throttle(username, wrong_password=not user):
if not user:
VDelay.record_violation("login", seconds=1, growfast=True)
c.errors.add(errors.WRONG_PASSWORD, field=self.param[1])
else:

View File

@@ -346,10 +346,6 @@ def valid_thing(v, karma, *a, **kw):
def valid_user(v, sr, karma, *a, **kw):
return True
# Returns whether this person is being suspicious
def login_throttle(username, wrong_password):
return False
def apply_updates(user):
pass