From 8ea7036ea4abb698da10884640893d93d11c4cf0 Mon Sep 17 00:00:00 2001 From: "Cathy J. Fitzpatrick" Date: Tue, 28 May 2013 22:38:58 -0600 Subject: [PATCH] Show error message for invalid usernames --- js/client.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/client.js b/js/client.js index fa5c5f9b7..c617eb9c3 100644 --- a/js/client.js +++ b/js/client.js @@ -272,6 +272,10 @@ self.addPopup(ReconnectPopup, {cantconnect: true}); }); + this.user.on('login:invalidname', function(name, reason) { + app.addPopup(LoginPopup, {name: name, reason: reason}); + }); + this.user.on('login:authrequired', function(name) { self.addPopup(LoginPasswordPopup, {username: name}); });