generated from nyu-software-engineering/web-app-exercise
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Login and signup buttons redirect to respective pages
- Loading branch information
1 parent
abaa2bf
commit ca6fd11
Showing
4 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
from flask import render_template | ||
from flask import render_template, request, redirect, url_for | ||
# from flask_login import LoginManager | ||
|
||
# login_manager = LoginManager() | ||
|
||
def login(): | ||
return render_template('login.html') | ||
if request.method == 'POST': | ||
## TODO: Login | ||
return "Someone pressed the login button huh, I better log you in." | ||
else: | ||
return render_template('login.html') | ||
|
||
def signup(): | ||
return render_template('signup.html') | ||
|
||
# TODO: Handle autehentication and session management with flask-login |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters