mirror of
https://onedev.site.tesses.net/tytd2025
synced 2026-02-08 09:45:44 +00:00
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
func Pages.Login(redirect,incorrect)
|
|
{
|
|
const html = <null>
|
|
<if(incorrect)>
|
|
<true>
|
|
<blockquote>
|
|
<h5>The login was incorrect, or does not exist</h5>
|
|
</blockquote>
|
|
</true>
|
|
</if>
|
|
<form method="POST" action="./login">
|
|
<input type="hidden" name="redirect" value={redirect}>
|
|
<article class="border medium no-padding center-align middle-align">
|
|
<div class="padding">
|
|
<h5>Login to TYTD2025</h5>
|
|
<div class="medium-padding">
|
|
<div class="field label border">
|
|
<input type="text" name="username">
|
|
<label>Username</label>
|
|
</div>
|
|
<div class="field label border">
|
|
<input type="password" name="password">
|
|
<label>Password</label>
|
|
</div>
|
|
<div class="medium-padding">
|
|
<button>Login</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
</form>
|
|
</null>;
|
|
|
|
return Components.ShellSimple("Login", html);
|
|
} |