From f81206df311afbe0fdbc3eeb03a6cc601ee5ae2b Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Mon, 27 May 2013 10:38:09 -0700 Subject: [PATCH] no need for user might be email kwarg in check_login_simple --- mediagoblin/auth/tools.py | 2 +- mediagoblin/auth/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mediagoblin/auth/tools.py b/mediagoblin/auth/tools.py index 94f23993..7123473d 100644 --- a/mediagoblin/auth/tools.py +++ b/mediagoblin/auth/tools.py @@ -198,7 +198,7 @@ def register_user(request, register_form): return None -def check_login_simple(username, password, username_might_be_email=False): +def check_login_simple(username, password): user = auth.get_user(username) if not user: _log.info("User %r not found", username) diff --git a/mediagoblin/auth/views.py b/mediagoblin/auth/views.py index b62602b3..f063add8 100644 --- a/mediagoblin/auth/views.py +++ b/mediagoblin/auth/views.py @@ -96,7 +96,7 @@ def login(request): username = login_form.username.data if login_form.validate(): - user = check_login_simple(username, login_form.password.data, True) + user = check_login_simple(username, login_form.password.data) if user: # set up login in session -- 2.25.1