Undo username pattern

This commit is contained in:
Pavel Djundik 2020-01-23 22:14:30 +02:00
parent e8ba4f4fb9
commit 0dd0d8fb12
2 changed files with 1 additions and 2 deletions

View file

@ -105,7 +105,6 @@
ref="usernameInput"
class="input username"
name="username"
pattern="[^\s:!@]+"
:value="defaults.username"
maxlength="100"
/>

View file

@ -75,7 +75,7 @@ Network.prototype.validate = function(client) {
this.username = this.nick.replace(/[^a-zA-Z0-9]/g, "");
}
this.username = cleanNick(this.username) || "thelounge";
this.username = cleanString(this.username) || "thelounge";
this.realname = cleanString(this.realname) || "The Lounge User";
this.password = cleanString(this.password);
this.host = cleanString(this.host);