Show error message for invalid usernames

This commit is contained in:
Cathy J. Fitzpatrick 2013-05-28 22:38:58 -06:00
parent 0a0e5f011b
commit 8ea7036ea4

View File

@ -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});
});