Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,11 +18,11 @@ db = client.login_app
|
|
| 18 |
users = db.login # Collection name
|
| 19 |
|
| 20 |
|
| 21 |
-
# Home Page
|
| 22 |
@app.route('/')
|
| 23 |
def index():
|
| 24 |
if 'user' in session:
|
| 25 |
-
return
|
| 26 |
return redirect(url_for('login'))
|
| 27 |
|
| 28 |
|
|
|
|
| 18 |
users = db.login # Collection name
|
| 19 |
|
| 20 |
|
| 21 |
+
# Home Page - index page
|
| 22 |
@app.route('/')
|
| 23 |
def index():
|
| 24 |
if 'user' in session:
|
| 25 |
+
return render_template("index.html", username=session['user'])
|
| 26 |
return redirect(url_for('login'))
|
| 27 |
|
| 28 |
|