Compare commits
1 Commits
2435d015fc
...
b3ba10fae2
Author | SHA1 | Date | |
---|---|---|---|
b3ba10fae2 |
13
templates/login.html
Normal file
13
templates/login.html
Normal 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
25
templates/signup.html
Normal 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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user