Added handling of incorrect logins

This commit is contained in:
delvh
2020-02-09 20:43:12 +01:00
parent ac2a1aad56
commit d37ab53275
4 changed files with 79 additions and 39 deletions

View File

@ -117,7 +117,7 @@ public class Startup {
try {
// Try entering offline mode
localDb.loadUsers();
User clientUser = localDb.getUsers().get(credentials.getName());
User clientUser = localDb.getUsers().get(credentials.getIdentifier());
if (clientUser == null) throw new EnvoyException("Could not enter offline mode: user name unknown");
client.setSender(clientUser);
JOptionPane.showMessageDialog(null,