Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
newr1/location_app/app/routes/login.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
24 lines (19 sloc)
817 Bytes
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
from flask import Blueprint, render_template, request, url_for, escape, redirect, session | |
from app.functions.data_tools import data_getter | |
from datetime import datetime | |
login_bl = Blueprint('login', __name__) | |
@login_bl.route("/", methods = ["GET", "POST"]) | |
def index(): | |
if request.method == "POST": | |
print(request.form) | |
return render_template("login/index.html") | |
@login_bl.route("/create_account", methods = ["GET", "POST"]) | |
def create_account(): | |
if request.method == "POST": | |
print(request.form) | |
return render_template("login/create.html", today = datetime.today().strftime('%Y-%m-%d')) | |
@login_bl.route("/forgot_password", methods = ["GET", "POST"]) | |
def forgot_password(): | |
if request.method == "POST": | |
print(request.form) | |
return render_template("login/forgot.html") |