fix(frontend): don't reference email auth in text if it's disabled
This commit is contained in:
parent
a248536789
commit
7d6d4631b8
2 changed files with 9 additions and 3 deletions
|
@ -86,7 +86,8 @@
|
||||||
"unlink-discord-header": "Unlink Discord account",
|
"unlink-discord-header": "Unlink Discord account",
|
||||||
"unlink-confirmation-1": "Are you sure you want to unlink {{username}} from your account?",
|
"unlink-confirmation-1": "Are you sure you want to unlink {{username}} from your account?",
|
||||||
"unlink-confirmation-2": "You will no longer be able to use this account to log in. Please make sure at least one of your other linked accounts is accessible before continuing.",
|
"unlink-confirmation-2": "You will no longer be able to use this account to log in. Please make sure at least one of your other linked accounts is accessible before continuing.",
|
||||||
"unlink-button": "Unlink account"
|
"unlink-button": "Unlink account",
|
||||||
|
"log-in-3rd-party-desc-no-email": "You can use any of the following services to log in. You can add or remove others at any time."
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
"bad-request-header": "Something was wrong with your input",
|
"bad-request-header": "Something was wrong with your input",
|
||||||
|
|
|
@ -50,8 +50,13 @@
|
||||||
<div class="col-lg-3"></div>
|
<div class="col-lg-3"></div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="col-md">
|
<div class="col-md">
|
||||||
|
{#if data.urls.email_enabled}
|
||||||
<h3>{$t("auth.log-in-3rd-party-header")}</h3>
|
<h3>{$t("auth.log-in-3rd-party-header")}</h3>
|
||||||
<p>{$t("auth.log-in-3rd-party-desc")}</p>
|
<p>{$t("auth.log-in-3rd-party-desc")}</p>
|
||||||
|
{:else}
|
||||||
|
<h3>{$t("title.log-in")}</h3>
|
||||||
|
<p>{$t("auth.log-in-3rd-party-desc-no-email")}</p>
|
||||||
|
{/if}
|
||||||
<form method="POST" action="?/fediToggle" use:enhance>
|
<form method="POST" action="?/fediToggle" use:enhance>
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
{#if data.urls.discord}
|
{#if data.urls.discord}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue