Rahul23232 commited on
Commit
9adda34
·
verified ·
1 Parent(s): c4d3a54

Upload 3 files

Browse files
templates/home.html ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Home</title>
5
+ </head>
6
+ <body>
7
+ <h2>Welcome, {{ username }}!</h2>
8
+ <p>Last visit info (from cookie): {{ last_visit }}</p>
9
+ <a href="{{ url_for('logout') }}">Logout</a>
10
+ </body>
11
+ </html>
templates/login.html ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Login</title>
5
+ </head>
6
+ <body>
7
+ <h2>Login</h2>
8
+ <form method="POST">
9
+ <label>Username:</label>
10
+ <input type="text" name="username" required><br><br>
11
+
12
+ <label>Password:</label>
13
+ <input type="password" name="password" required><br><br>
14
+
15
+ <label>
16
+ <input type="checkbox" name="remember"> Remember Me
17
+ </label><br><br>
18
+
19
+ <button type="submit">Login</button>
20
+ </form>
21
+ <p>Don't have an account? <a href="{{ url_for('signup') }}">Signup here</a></p>
22
+ </body>
23
+ </html>
templates/signup.html ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Signup</title>
5
+ </head>
6
+ <body>
7
+ <h2>Signup</h2>
8
+ <form method="POST">
9
+ <label>Username:</label>
10
+ <input type="text" name="username" required><br><br>
11
+
12
+ <label>Password:</label>
13
+ <input type="password" name="password" required><br><br>
14
+
15
+ <button type="submit">Signup</button>
16
+ </form>
17
+ <p>Already have an account? <a href="{{ url_for('login') }}">Login here</a></p>
18
+ </body>
19
+ </html>