Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 7c33fc6

Browse files
authored
fix wrong error message in registration when phone number threepid is in use. (#9571)
1 parent e8d4fbb commit 7c33fc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/structures/auth/Registration.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export default class Registration extends React.Component<IProps, IState> {
333333
} else if (response.errcode === "M_USER_IN_USE") {
334334
errorText = _t("Someone already has that username, please try another.");
335335
} else if (response.errcode === "M_THREEPID_IN_USE") {
336-
errorText = _t("That e-mail address is already in use.");
336+
errorText = _t("That e-mail address or phone number is already in use.");
337337
}
338338

339339
this.setState({

src/i18n/strings/en_EN.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3465,7 +3465,7 @@
34653465
"Unable to query for supported registration methods.": "Unable to query for supported registration methods.",
34663466
"This server does not support authentication with a phone number.": "This server does not support authentication with a phone number.",
34673467
"Someone already has that username, please try another.": "Someone already has that username, please try another.",
3468-
"That e-mail address is already in use.": "That e-mail address is already in use.",
3468+
"That e-mail address or phone number is already in use.": "That e-mail address or phone number is already in use.",
34693469
"Continue with %(ssoButtons)s": "Continue with %(ssoButtons)s",
34703470
"%(ssoButtons)s Or %(usernamePassword)s": "%(ssoButtons)s Or %(usernamePassword)s",
34713471
"Already have an account? <a>Sign in here</a>": "Already have an account? <a>Sign in here</a>",

0 commit comments

Comments
 (0)