Skip to content

Commit

Permalink
Fix func signature error.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfermigier committed Mar 23, 2017
1 parent d5c90ba commit 75bc884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions abilian/services/auth/views.py
Expand Up @@ -73,14 +73,14 @@ def do_login(form):
User.can_login == True) \
.one()
except NoResultFound:
auth_failed.send(current_app._get_current_object(), email)
auth_failed.send(current_app._get_current_object(), email=email)
res['error'] = _(u"Sorry, we couldn't find an account for "
u"email '{email}'.").format(email=email)
res['code'] = 401
return res

if user and not user.authenticate(password):
auth_failed.send(current_app._get_current_object(), email)
auth_failed.send(current_app._get_current_object(), email=email)
res['error'] = _(u"Sorry, wrong password.")
res['code'] = 401
return res
Expand Down

0 comments on commit 75bc884

Please sign in to comment.