no need for user might be email kwarg in check_login_simple

This commit is contained in:
Rodney Ewing 2013-05-27 10:38:09 -07:00
parent 0ccc722ddc
commit f81206df31
2 changed files with 2 additions and 2 deletions

View File

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

View File

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