mirror of
https://github.com/1f349/lavender.git
synced 2025-02-23 06:05:08 +00:00
Rewrite login.astro as a login page
This commit is contained in:
parent
02f4443fb0
commit
34d84031ea
@ -9,15 +9,13 @@ import Layout from "../layouts/Layout.astro";
|
|||||||
<p>Check your inbox for a verification email</p>
|
<p>Check your inbox for a verification email</p>
|
||||||
[[ end ]]
|
[[ end ]]
|
||||||
[[ .AuthTemplate ]]
|
[[ .AuthTemplate ]]
|
||||||
<div>
|
<div class="w-full">
|
||||||
<form method="POST" action="/reset-password">
|
<form method="POST" action="/login">
|
||||||
<p>Enter your email address below to receive an email with instructions on how to reset your password.</p>
|
<input type="hidden" name="redirect" value="[[ .Redirect ]]"/>
|
||||||
<p>Please note this only works if your email address is already verified.</p>
|
<div class="w-full">
|
||||||
<div>
|
<label>Email: <input type="email" name="email" value="[[ .UserEmail ]]" required/></label>
|
||||||
<label for="field_email">Email:</label>
|
|
||||||
<input type="email" name="email" id="field_email" required/>
|
|
||||||
</div>
|
</div>
|
||||||
<button type="submit">Send Reset Password Email</button>
|
<button type="submit">Continue</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
[[ if gt (len .AuthButtons) 0 ]]
|
[[ if gt (len .AuthButtons) 0 ]]
|
||||||
@ -28,3 +26,12 @@ import Layout from "../layouts/Layout.astro";
|
|||||||
</div>
|
</div>
|
||||||
[[ end ]]
|
[[ end ]]
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
form label {
|
||||||
|
white-space: nowrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
display: flex;
|
||||||
|
gap: 1em;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user