aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhurshid Fayzullaev <khurshidfayzullaev@yahoo.com>2014-03-20 15:01:32 -0400
committerKhurshid Fayzullaev <khurshidfayzullaev@yahoo.com>2014-03-20 15:01:32 -0400
commit6cd0a8c9327d2628d022d3f2ad87ac2de7026a97 (patch)
tree2a3ec8fd86852c9d123a3807b4fc1b7b59724d14
parent4ed5277c256c3e1391e70d74b83c53aa05124ec1 (diff)
downloadtrackermap-web-6cd0a8c9327d2628d022d3f2ad87ac2de7026a97.tar.gz
trackermap-web-6cd0a8c9327d2628d022d3f2ad87ac2de7026a97.tar.bz2
trackermap-web-6cd0a8c9327d2628d022d3f2ad87ac2de7026a97.zip
Prompt error if username is already taken
Add onFailure to prompt an error about that a username is taken
-rw-r--r--src/org/traccar/web/client/controller/LoginController.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/web/client/controller/LoginController.java b/src/org/traccar/web/client/controller/LoginController.java
index f8fdc8c2..1aa152b8 100644
--- a/src/org/traccar/web/client/controller/LoginController.java
+++ b/src/org/traccar/web/client/controller/LoginController.java
@@ -90,6 +90,10 @@ public class LoginController implements LoginDialog.LoginHandler {
loginHandler.onLogin();
}
}
+ @Override
+ public void onFailure(Throwable caught) {
+ new AlertMessageBox("Error", "Username is already taken").show();
+ }
});
}
}