Skip to content

Commit

Permalink
Merge pull request #358 from kerkmann/registration-title
Browse files Browse the repository at this point in the history
fix: Title is always showing `Password Reset` for registration
  • Loading branch information
sebadob committed Apr 22, 2024
2 parents 463e424 + 4108654 commit 84bbdf7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/routes/users/{id}/reset/reset/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,11 @@
</script>
<svelte:head>
<title>Password Reset</title>
{#if requestType.startsWith('new_user')}
<title>{t.newAccount}</title>
{:else if requestType === "password_reset"}
<title>{t.passwordReset}</title>
{/if}
</svelte:head>
<BrowserCheck>
Expand Down
3 changes: 3 additions & 0 deletions rauthy-models/src/i18n/password_reset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub struct I18nPasswordReset<'a> {
new_acc_desc_1: &'a str,
new_acc_desc_2: &'a str,
new_account: &'a str,
password_reset: &'a str,
password: &'a str,
passwordless: &'a str,
password_confirm: &'a str,
Expand Down Expand Up @@ -64,6 +65,7 @@ a way stronger security. You will need at least one passkey (Yubikey, Apple Touc
...) to create such an account. Your device must embreace the Fido2 standard. For more information
about this, you may follow this link: "#,
new_account: "New Account",
password_reset: "Password Reset",
password: "Password",
passwordless: "FIDO Passkey",
password_confirm: "Password Confirm",
Expand Down Expand Up @@ -99,6 +101,7 @@ und schnelleren Login.
Dazu wird mindestens ein Passkey (Yubikey, Apple Touch ID, Windows Hello, ...) benötigt, welcher dem
FIDO2 Standard gerecht wird. Für weitere Informationen können Sie diesem Link folgen: "#,
new_account: "Neuer Account",
password_reset: "Passwort Zurücksetzen",
password: "Passwort",
passwordless: "FIDO Passkey",
password_confirm: "Passwort bestätigen",
Expand Down

0 comments on commit 84bbdf7

Please sign in to comment.