def index(): g.user = get_current_user() # Admin checking if g.user and not g.user.is_admin and not request.path == "/public_key": return redirect("/public_key") return render_template('index.html')
def user(self): return get_current_user()
def index(): g.user = get_current_user() return render_template('index.html')