diff options
author | Khurshid Fayzullaev <khurshidfayzullaev@yahoo.com> | 2014-03-20 15:01:32 -0400 |
---|---|---|
committer | Khurshid Fayzullaev <khurshidfayzullaev@yahoo.com> | 2014-03-20 15:01:32 -0400 |
commit | 6cd0a8c9327d2628d022d3f2ad87ac2de7026a97 (patch) | |
tree | 2a3ec8fd86852c9d123a3807b4fc1b7b59724d14 /src/org/traccar/web/client | |
parent | 4ed5277c256c3e1391e70d74b83c53aa05124ec1 (diff) | |
download | trackermap-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
Diffstat (limited to 'src/org/traccar/web/client')
-rw-r--r-- | src/org/traccar/web/client/controller/LoginController.java | 4 |
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(); + } }); } } |