Add login support and oobe

This commit is contained in:
2026-01-29 15:08:12 -06:00
parent c3ef57b8b6
commit 3919384b57
16 changed files with 1386 additions and 70 deletions

View File

@@ -0,0 +1,49 @@
func Pages.ChangePassword(redirect,incorrect)
{
const html = <null>
<if(incorrect)>
<true>
<blockquote>
<h5>The password could not be changed</h5>
</blockquote>
</true>
</if>
<form method="POST" action="./passwd">
<input type="hidden" name="redirect" value={redirect}>
<article class="border medium no-padding center-align middle-align">
<div class="padding">
<h5>Change your password</h5>
<div class="medium-padding">
<div class="field label border">
<input type="password" name="password">
<label>Current password</label>
</div>
<div class="field label border">
<input type="password" name="newpassword">
<label>New password</label>
</div>
<div class="field label border">
<input type="password" name="confirm">
<label>Confirm new password</label>
</div>
<div class="medium-padding">
<button>Change password</button>
<label class="checkbox">
<input type="checkbox" name="logout" checked>
<span>Log me out on all devices</span>
</label>
</div>
</div>
</div>
</article>
</form>
</null>;
return Components.Shell("Change your password",html,3);
}