1
0
Fork 0
forked from s3lph/matemat

feat: refactor password change section

This commit is contained in:
Valentin Weber 2024-12-07 22:08:46 +01:00
parent 4f69a1b447
commit 470da688f3
Signed by: weva
GPG key ID: 44797000F143F522

View file

@ -101,16 +101,31 @@
<h2>Password</h2> <h2>Password</h2>
<form id="settings-password-form" method="post" action="/settings?change=password" accept-charset="UTF-8"> <form id="settings-password-form" method="post" action="/settings?change=password" accept-charset="UTF-8">
<label class="form-label" for="settings-password-oldpass">Current password: </label> <div class="row g-2 mb-2">
<input class="form-control" id="settings-password-oldpass" type="password" name="oldpass" /><br/> <div class="col-md">
<div class="form-floating">
<label class="form-label" for="settings-password-newpass">New password: </label> <input class="form-control" id="settings-password-oldpass" type="password" name="oldpass">
<input class="form-control" id="settings-password-newpass" type="password" name="newpass" /><br/> <label for="settings-password-oldpass">Current password </label>
</div>
<label class="form-label" for="settings-password-newpass2">Repeat password: </label> </div>
<input class="form-control" id="settings-password-newpass2" type="password" name="newpass2" /><br/> <div class="col-md">
<div class="form-floating">
<input class="btn btn-primary" type="submit" value="Save changes" /> <input class="form-control" id="settings-password-newpass" type="password" name="newpass">
<label for="settings-password-newpass">New password</label>
</div>
</div>
<div class="col-md">
<div class="form-floating">
<input class="form-control" id="settings-password-newpass2" type="password" name="newpass2">
<label for="settings-password-newpass2">Repeat password</label>
</div>
</div>
</div>
<div class="row g-2">
<div class="col">
<input class="btn btn-primary" type="submit" value="Save changes">
</div>
</div>
</form> </form>
</section> </section>