form progress

This commit is contained in:
Xevion
2019-07-04 04:43:51 -05:00
parent 92a6f8ad49
commit d969cd5009
11 changed files with 91 additions and 24 deletions

View File

@@ -1,10 +1,10 @@
from app import app, db, login
from app.models import User, Search, require_role
from app.models import User, Search
from app.forms import LoginForm, RegistrationForm
from app.custom import require_role
from werkzeug.urls import url_parse
from flask import render_template, redirect, url_for, flash, request, jsonify, abort
from flask_login import current_user, login_user, logout_user, login_required
from functools import wraps
import requests
import xmltodict
import base64
@@ -21,11 +21,6 @@ def strgen(length): return ''.join(random.choices(list(string.ascii_letters), k=
def unauthorized(e):
return redirect(url_for('login'))
@app.route('/dashboard')
@login_required
def dashboard():
return render_template('/dashboard/dashboard.html')
@app.route('/profile/')
@login_required
def profile():