From 6cd0a8c9327d2628d022d3f2ad87ac2de7026a97 Mon Sep 17 00:00:00 2001 From: Khurshid Fayzullaev Date: Thu, 20 Mar 2014 15:01:32 -0400 Subject: Prompt error if username is already taken Add onFailure to prompt an error about that a username is taken --- src/org/traccar/web/client/controller/LoginController.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/org/traccar') 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(); + } }); } } -- cgit v1.2.3