| | import requests,urllib |
| | import json |
| | from flask import Blueprint, request, Response,redirect,url_for,jsonify,render_template |
| |
|
| | from werkzeug.security import generate_password_hash |
| |
|
| | authentication = Blueprint('authentication', __name__, static_folder='./static', template_folder='./templates') |
| |
|
| |
|
| | @authentication.route('/', methods=['GET']) |
| | def Auth_Home(): |
| | return redirect(url_for('authentication.Auth_login')) |
| |
|
| |
|
| |
|
| | @authentication.route('/login', methods=['GET','POST']) |
| | def Auth_login(): |
| | print("Activated") |
| | if request.method == 'POST': |
| | email = request.form.get('email') |
| | password = request.form.get('password') |
| | return redirect(url_for('handler.Handler_Main')) |
| | return render_template("login.html") |
| |
|
| |
|
| |
|
| | @authentication.route('/signup', methods=['GET','POST']) |
| | def Auth_signup(): |
| | return render_template("signup.html") |
| |
|
| |
|
| |
|