username sanitize
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
.then((response) => {
|
||||
if (!response.ok) {
|
||||
success.username = ''
|
||||
errors.username = "Something went wrong";
|
||||
errors.username = "Use [a-zA-Z0-9] and - _ .";
|
||||
if (response.status === 409) {
|
||||
errors.username = `${set.username} is already in use, pick a different one.`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user