fix totp title

This commit is contained in:
pilcrowOnPaper 2024-10-06 19:53:00 +09:00
parent ebad403bce
commit 85ef71a6f7
3 changed files with 4 additions and 5 deletions

View file

@ -7,7 +7,7 @@
export let form: ActionData; export let form: ActionData;
</script> </script>
<h1>Two-factor authentication</h1> <h1>Authenticate with authenticator app</h1>
<form method="post" use:enhance> <form method="post" use:enhance>
<label for="form-totp.code">Enter the code from your app</label> <label for="form-totp.code">Enter the code from your app</label>
<input id="form-totp.code" name="code" autocomplete="one-time-code" required /><br /> <input id="form-totp.code" name="code" autocomplete="one-time-code" required /><br />

View file

@ -7,7 +7,7 @@
export let form: ActionData; export let form: ActionData;
</script> </script>
<h1>Set up two-factor authentication</h1> <h1>Set up authenticator app</h1>
<div style="width:200px; height: 200px;"> <div style="width:200px; height: 200px;">
{@html data.qrcode} {@html data.qrcode}
</div> </div>

View file

@ -7,10 +7,9 @@
export let form: ActionData; export let form: ActionData;
</script> </script>
<h1>Two-factor authentication</h1> <h1>Authenticate with authenticator app</h1>
<p>Enter the code in your authenticator app.</p>
<form method="post" use:enhance> <form method="post" use:enhance>
<label for="form-totp.code">Code</label> <label for="form-totp.code">Enter the code from your app</label>
<input id="form-totp.code" name="code" required /><br /> <input id="form-totp.code" name="code" required /><br />
<button>Verify</button> <button>Verify</button>
<p>{form?.message ?? ""}</p> <p>{form?.message ?? ""}</p>