mirror of
https://onedev.site.tesses.net/tytd2025
synced 2026-02-09 01:55:46 +00:00
Add login support and oobe
This commit is contained in:
35
Tesses.YouTubeDownloader.Server/src/pages/login.tcross
Normal file
35
Tesses.YouTubeDownloader.Server/src/pages/login.tcross
Normal file
@@ -0,0 +1,35 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user