redesigned register prompt, added links between both pages

implements changes as suggested on #15

A new registration prompt! (basically the same content but nicely packaged now!)

There also are now little texts between both pages to switch between
logging in w/ already existing credentials and registering an account.
merge-requests/6/head
4 raccoons in a trenchcoat. / luna vivian 2023-04-20 04:06:45 +02:00
parent d0ef4a9e55
commit 2c52b27622
2 changed files with 9 additions and 8 deletions

View File

@ -6,4 +6,5 @@
<tr><td colspan='2' style='text-align:right;'><input type='submit' value='Login'></td></tr>
</table>
</form>
<p>Don't have an account yet? <a href="/login">Register an account!</a></p>
{{.reason}}

View File

@ -1,10 +1,10 @@
<h1>Register</h1>
<form method='post'>
<label for='login'>Login:</label>
<input type='text' name='login'><br>
<label for='password'>Password:</label>
<input type='password' name='password'><br>
<input type='submit' value='Register'>
<h1>Register on this BashTube instance</h1>
<form method='post'>
<table>
<tr><td><label for='login'>User name:</label></td><td><input type='text' name='login' placeholder="dingus"></td></tr>
<tr><td><label for='password'>Password:</label></td><td><input type='password' name='password' placeholder="password123"></td></tr>
<tr><td colspan='2' style='text-align:right;'><input type='submit' value='Register'></td></tr>
</table>
</form>
(please make sure that you're connecting over SSL)<br>
<p>Have an account already? <a href="/login">Log in with your credentials!</a></p>
{{.reason}}