Improve password reset UI

This commit is contained in:
Jay 2022-03-03 17:33:16 +01:00
parent be4e88cc9a
commit 79e9029faf

View file

@ -138,7 +138,16 @@ $page->navigation();
<label>Email</label>
<div class="ui left icon input">
<input type="email" name="email" placeholder="john.doe@domain.tld" />
<?php if ($_GET['password-reset']) { ?>
<input type="email"
name="email"
placeholder="john.doe@domain.tld"
value="<?= $_GET['password-reset'] ?>"
readonly
/>
<?php } else { ?>
<input type="email" name="email" placeholder="john.doe@domain.tld" />
<?php } ?>
<i class="envelope icon"></i>
</div>
</div>