mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Remove login_throttle() call.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user