Skip to content

Commit

Permalink
Add the error message for default login failures
Browse files Browse the repository at this point in the history
  • Loading branch information
casedefault committed Feb 25, 2017
1 parent a1a9477 commit 970f019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ def _login(self):
if '<form class="auth_form" name="2fa" id="2fa"' in r.text:
raise LoginException("2FA is enabled on your account, unable to login.")
else:
raise LoginException
raise LoginException("Unsuccessful login attempt.")
accountinfo = self.request("index")
self.authkey = accountinfo["response"]["authkey"]
self.passkey = accountinfo["response"]["passkey"]
Expand Down

0 comments on commit 970f019

Please sign in to comment.