hack-wpi-python/goathacks/registration/__init__.py
2022-12-05 16:50:52 -05:00

12 lines
274 B
Python

from flask import Blueprint, flash
from flask_login import current_user
bp = Blueprint('registration', __name__, url_prefix="/registration")
@bp.route("/")
def register():
if current_user.is_authenticated:
flash("You are already registered and logged in!")