Add login support and oobe
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user