Add persistent session storage with SQLite
This commit is contained in:
parent
747d9fe3c7
commit
b7072a5865
10 changed files with 135 additions and 43 deletions
12
internal/auth/templates/login.html
Normal file
12
internal/auth/templates/login.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<header>
|
||||
<h1>Login</h1>
|
||||
</header>
|
||||
<main>
|
||||
<form method="post">
|
||||
<label>Login</label>
|
||||
<input type="text" name="login" />
|
||||
<label>Password</label>
|
||||
<input type="password" name="password" />
|
||||
<button type="submit">login</button>
|
||||
</form>
|
||||
</main>
|
||||
12
internal/auth/templates/wrongPassword.html
Normal file
12
internal/auth/templates/wrongPassword.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<header>
|
||||
<h1>Wrong Password</h1>
|
||||
</header>
|
||||
<main>
|
||||
<form method="post">
|
||||
<label>Login</label>
|
||||
<input type="text" name="login" />
|
||||
<label>Password</label>
|
||||
<input type="password" name="password" />
|
||||
<button type="submit">login</button>
|
||||
</form>
|
||||
</main>
|
||||
Loading…
Add table
Add a link
Reference in a new issue