Improve auth error messages
This commit is contained in:
@@ -366,6 +366,8 @@ export default class Registration extends React.Component<IProps, IState> {
|
||||
if (!msisdnAvailable) {
|
||||
msg = _t('This server does not support authentication with a phone number.');
|
||||
}
|
||||
} else if (response.errcode === "M_USER_IN_USE") {
|
||||
msg = _t("That username already exists, please try another.");
|
||||
}
|
||||
this.setState({
|
||||
busy: false,
|
||||
|
||||
Reference in New Issue
Block a user