import datetime import sqlalchemy import string from datetime import timedelta from flask import ( Blueprint, current_app, flash, g, redirect, render_template, request, session, url_for, ) from passlib.hash import sha256_crypt bp = Blueprint('api.auth', __name__)