Compare commits

..

1 Commits

Author SHA1 Message Date
b3ba10fae2 sign up feature added 2018-06-16 16:44:15 -04:00
2 changed files with 38 additions and 0 deletions

13
templates/login.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
</head>
<body>
<form method="post" action="{{ url_for('login') }}">
<input type="text" placeholder="Username" name="user" maxlength="20" required/><br />
<input type="password" placeholder="Password" name="pass" maxlength="1024" required/><br />
<input type="submit" value="Log in" name="submit"/>
</form>
</body>
</html>

25
templates/signup.html Normal file
View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<title>Sign up a new account</title>
</head>
<body>
<div id="namePassRules">
<p>Username rules:
<ul>
<li>Must be between 3 and 20 characters</li>
<li>Can only contain ASCII letters (case sensitive) and numbers</li>
</ul>
<p>Password rules:
<ul>
<li>Must be between 8 and 1024 characters</li>
</ul>
<form method="post" action="{{ url_for('signup') }}">
<input type="text" placeholder="Username" name="user" maxlength="20" required/><br />
<input type="password" placeholder="Password" name="pass" maxlength="1024" required/><br />
<input type="password" placeholder="Verify password" name="verify_pass" maxlength="1024" required/><br />
<input type="submit" value="Sign up" name="submit"/>
</form>
</body>
</html>