Skip to content
Browse files

Add reminder that usernames may differ from email address

Sometimes users confuse their username and email address.  This causes
login to fail.  Add a reminder if the username field contained a '@'

Signed-off-by: Stefan Hajnoczi <>
  • Loading branch information...
stefanha committed Jan 1, 2017
1 parent d7b1652 commit 9e60738ea7521325ff5db510b0ff2b656a318db3
Showing with 6 additions and 2 deletions.
  1. +6 −2 qtclient/JammrLoginDialog.cpp
@@ -1,5 +1,5 @@
Copyright (C) 2012 Stefan Hajnoczi <>
Copyright (C) 2012-2017 Stefan Hajnoczi <>
Wahjam is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -122,7 +122,11 @@ void JammrLoginDialog::requestFinished()
QString message;
switch (err) {
case QNetworkReply::AuthenticationRequiredError:
message = tr("Invalid username/password, please try again.");
if (username().contains('@')) {
message = tr("Invalid username/password. Your username may be different from your email address. Please try again with your username.");
} else {
message = tr("Invalid username/password, please try again.");

case QNetworkReply::ConnectionRefusedError:

0 comments on commit 9e60738

Please sign in to comment.
You can’t perform that action at this time.