fix(ui-server-auth): clarify social-only email sign-in hint (#1879)
This commit is contained in:
@@ -149,7 +149,7 @@ async function handleIdentify(event: Event) {
|
|||||||
if (result.exists && !result.hasPassword) {
|
if (result.exists && !result.hasPassword) {
|
||||||
// User signed up via a social provider only. Stay on the identifier step
|
// User signed up via a social provider only. Stay on the identifier step
|
||||||
// so the OAuth buttons remain visible, and steer them there with a hint.
|
// so the OAuth buttons remain visible, and steer them there with a hint.
|
||||||
errorMessage.value = t('server.auth.signIn.error.authFailed')
|
errorMessage.value = t('server.auth.signIn.error.socialOnlyNoPassword')
|
||||||
// NOTICE:
|
// NOTICE:
|
||||||
// We avoid disclosing *which* social provider they used here. The
|
// We avoid disclosing *which* social provider they used here. The
|
||||||
// generic OAuth button row is right below; users who registered via
|
// generic OAuth button row is right below; users who registered via
|
||||||
@@ -277,7 +277,7 @@ async function handleEmailSignUp(event: Event) {
|
|||||||
when there's nothing to show; the role swaps to alert when populated. -->
|
when there's nothing to show; the role swaps to alert when populated. -->
|
||||||
<div
|
<div
|
||||||
:class="[
|
:class="[
|
||||||
'mb-2 max-w-xs w-full min-h-[1.25rem] text-center text-sm',
|
'mb-2 max-w-sm w-full min-h-[1.25rem] text-center text-sm',
|
||||||
errorMessage ? 'text-red-500' : 'text-transparent select-none',
|
errorMessage ? 'text-red-500' : 'text-transparent select-none',
|
||||||
]"
|
]"
|
||||||
:role="errorMessage ? 'alert' : undefined"
|
:role="errorMessage ? 'alert' : undefined"
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ signIn:
|
|||||||
error:
|
error:
|
||||||
fallback: Sign in failed
|
fallback: Sign in failed
|
||||||
unknown: An unknown error occurred
|
unknown: An unknown error occurred
|
||||||
authFailed: Authentication failed. Please try again.
|
socialOnlyNoPassword: This email was registered with Google or GitHub. Sign in with a button below; you can add a password in account settings after signing in.
|
||||||
passwordMismatch: Password and confirmation do not match.
|
passwordMismatch: Password and confirmation do not match.
|
||||||
invalidEmail: Please enter a valid email address.
|
invalidEmail: Please enter a valid email address.
|
||||||
footer:
|
footer:
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ signIn:
|
|||||||
error:
|
error:
|
||||||
fallback: Error en el inicio de sesión
|
fallback: Error en el inicio de sesión
|
||||||
unknown: S produjo un error inesperado
|
unknown: S produjo un error inesperado
|
||||||
authFailed: La autenticación ha fallado. Por favor inténtelo otra vez.
|
socialOnlyNoPassword: This email was registered with Google or GitHub. Sign in with a button below; you can add a password in account settings after signing in.
|
||||||
passwordMismatch: Las contraseñas no coinciden.
|
passwordMismatch: Las contraseñas no coinciden.
|
||||||
invalidEmail: Por favor, introduzca una dirección de correo electrónico válida.
|
invalidEmail: Por favor, introduzca una dirección de correo electrónico válida.
|
||||||
footer:
|
footer:
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ signIn:
|
|||||||
error:
|
error:
|
||||||
fallback: Sign in failed
|
fallback: Sign in failed
|
||||||
unknown: An unknown error occurred
|
unknown: An unknown error occurred
|
||||||
authFailed: Authentication failed. Please try again.
|
socialOnlyNoPassword: This email was registered with Google or GitHub. Sign in with a button below; you can add a password in account settings after signing in.
|
||||||
passwordMismatch: Password and confirmation do not match.
|
passwordMismatch: Password and confirmation do not match.
|
||||||
invalidEmail: Please enter a valid email address.
|
invalidEmail: Please enter a valid email address.
|
||||||
footer:
|
footer:
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ signIn:
|
|||||||
error:
|
error:
|
||||||
fallback: Sign in failed
|
fallback: Sign in failed
|
||||||
unknown: An unknown error occurred
|
unknown: An unknown error occurred
|
||||||
authFailed: Authentication failed. Please try again.
|
socialOnlyNoPassword: This email was registered with Google or GitHub. Sign in with a button below; you can add a password in account settings after signing in.
|
||||||
passwordMismatch: Password and confirmation do not match.
|
passwordMismatch: Password and confirmation do not match.
|
||||||
invalidEmail: Please enter a valid email address.
|
invalidEmail: Please enter a valid email address.
|
||||||
footer:
|
footer:
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ signIn:
|
|||||||
error:
|
error:
|
||||||
fallback: 가입 실패
|
fallback: 가입 실패
|
||||||
unknown: 알 수 없는 오류가 발생했습니다
|
unknown: 알 수 없는 오류가 발생했습니다
|
||||||
authFailed: 인증에 실패했습니다. 다시 시도해 주세요.
|
socialOnlyNoPassword: This email was registered with Google or GitHub. Sign in with a button below; you can add a password in account settings after signing in.
|
||||||
passwordMismatch: Password and confirmation do not match.
|
passwordMismatch: Password and confirmation do not match.
|
||||||
invalidEmail: Please enter a valid email address.
|
invalidEmail: Please enter a valid email address.
|
||||||
footer:
|
footer:
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ signIn:
|
|||||||
error:
|
error:
|
||||||
fallback: Войти не удалось
|
fallback: Войти не удалось
|
||||||
unknown: Произошла неизвестная ошибка
|
unknown: Произошла неизвестная ошибка
|
||||||
authFailed: Аутентификация не пройдена. Пожалуйста, попробуйте снова.
|
socialOnlyNoPassword: This email was registered with Google or GitHub. Sign in with a button below; you can add a password in account settings after signing in.
|
||||||
passwordMismatch: Пароли не совпадают.
|
passwordMismatch: Пароли не совпадают.
|
||||||
invalidEmail: Пожалуйста, введите действительный email.
|
invalidEmail: Пожалуйста, введите действительный email.
|
||||||
footer:
|
footer:
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ signIn:
|
|||||||
error:
|
error:
|
||||||
fallback: Sign in failed
|
fallback: Sign in failed
|
||||||
unknown: An unknown error occurred
|
unknown: An unknown error occurred
|
||||||
authFailed: Authentication failed. Please try again.
|
socialOnlyNoPassword: This email was registered with Google or GitHub. Sign in with a button below; you can add a password in account settings after signing in.
|
||||||
passwordMismatch: Password and confirmation do not match.
|
passwordMismatch: Password and confirmation do not match.
|
||||||
invalidEmail: Please enter a valid email address.
|
invalidEmail: Please enter a valid email address.
|
||||||
footer:
|
footer:
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ signIn:
|
|||||||
error:
|
error:
|
||||||
fallback: 登录失败
|
fallback: 登录失败
|
||||||
unknown: 发生了未知错误
|
unknown: 发生了未知错误
|
||||||
authFailed: Authentication failed. Please try again.
|
socialOnlyNoPassword: 该邮箱通过 Google 或 GitHub 注册,请用下方按钮登录,登录后可在设置中添加密码。
|
||||||
passwordMismatch: Password and confirmation do not match.
|
passwordMismatch: Password and confirmation do not match.
|
||||||
invalidEmail: 请输入有效格式的电子邮件地址
|
invalidEmail: 请输入有效格式的电子邮件地址
|
||||||
footer:
|
footer:
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ signIn:
|
|||||||
error:
|
error:
|
||||||
fallback: Sign in failed
|
fallback: Sign in failed
|
||||||
unknown: An unknown error occurred
|
unknown: An unknown error occurred
|
||||||
authFailed: Authentication failed. Please try again.
|
socialOnlyNoPassword: 此電子郵件透過 Google 或 GitHub 註冊,請用下方按鈕登入,登入後可在設定中新增密碼。
|
||||||
passwordMismatch: Password and confirmation do not match.
|
passwordMismatch: Password and confirmation do not match.
|
||||||
invalidEmail: Please enter a valid email address.
|
invalidEmail: Please enter a valid email address.
|
||||||
footer:
|
footer:
|
||||||
|
|||||||
Reference in New Issue
Block a user