mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
M_INVALID_USERNAME to be consistent with param name
This commit is contained in:
parent
dcfcc51f4c
commit
51ce76aeab
@ -152,7 +152,7 @@ class Register extends Signup {
|
||||
} else {
|
||||
if (error.errcode === 'M_USER_IN_USE') {
|
||||
throw new Error("Username in use");
|
||||
} else if (error.errcode == 'M_INVALID_USER_NAME') {
|
||||
} else if (error.errcode == 'M_INVALID_USERNAME') {
|
||||
throw new Error("User names may only contain alphanumeric characters, underscores or dots!");
|
||||
} else if (error.httpStatus == 401) {
|
||||
throw new Error("Authorisation failed!");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user