mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
Show error message for invalid usernames
This commit is contained in:
parent
0a0e5f011b
commit
8ea7036ea4
|
|
@ -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});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user