From 7c33fc6cf623235963de3e2656c10e470dcf646f Mon Sep 17 00:00:00 2001 From: Mahdi Bagvand Date: Sun, 13 Nov 2022 20:28:40 +0330 Subject: [PATCH] fix wrong error message in registration when phone number threepid is in use. (#9571) --- src/components/structures/auth/Registration.tsx | 2 +- src/i18n/strings/en_EN.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/structures/auth/Registration.tsx b/src/components/structures/auth/Registration.tsx index 0ab90abb49..ab88c446ef 100644 --- a/src/components/structures/auth/Registration.tsx +++ b/src/components/structures/auth/Registration.tsx @@ -333,7 +333,7 @@ export default class Registration extends React.Component { } else if (response.errcode === "M_USER_IN_USE") { errorText = _t("Someone already has that username, please try another."); } else if (response.errcode === "M_THREEPID_IN_USE") { - errorText = _t("That e-mail address is already in use."); + errorText = _t("That e-mail address or phone number is already in use."); } this.setState({ diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 9af1b476f1..e383e4ff26 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -3465,7 +3465,7 @@ "Unable to query for supported registration methods.": "Unable to query for supported registration methods.", "This server does not support authentication with a phone number.": "This server does not support authentication with a phone number.", "Someone already has that username, please try another.": "Someone already has that username, please try another.", - "That e-mail address is already in use.": "That e-mail address is already in use.", + "That e-mail address or phone number is already in use.": "That e-mail address or phone number is already in use.", "Continue with %(ssoButtons)s": "Continue with %(ssoButtons)s", "%(ssoButtons)s Or %(usernamePassword)s": "%(ssoButtons)s Or %(usernamePassword)s", "Already have an account? Sign in here": "Already have an account? Sign in here",