mirror of https://github.com/calzoneman/sync.git
Fix #356
This commit is contained in:
parent
c11d31e716
commit
e9fc3cfaca
|
@ -538,8 +538,7 @@ User.prototype.guestLogin = function (name) {
|
||||||
self.socket.emit("login", {
|
self.socket.emit("login", {
|
||||||
success: false,
|
success: false,
|
||||||
error: "Invalid username. Usernames must be 1-20 characters long and " +
|
error: "Invalid username. Usernames must be 1-20 characters long and " +
|
||||||
"consist only of characters a-z, A-Z, 0-9, -, _, and accented " +
|
"consist only of characters a-z, A-Z, 0-9, -, or _."
|
||||||
"letters."
|
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,7 @@ html(lang="en")
|
||||||
$("<p/>").addClass("text-danger")
|
$("<p/>").addClass("text-danger")
|
||||||
.attr("id", "usernameerror")
|
.attr("id", "usernameerror")
|
||||||
.text("Username must consist of 1-20 characters a-Z, A-Z, 0-9 " +
|
.text("Username must consist of 1-20 characters a-Z, A-Z, 0-9 " +
|
||||||
", -, _, and accented letters.")
|
", -, or _.")
|
||||||
.insertAfter($("#username"));
|
.insertAfter($("#username"));
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue