Merge pull request #379 from dod-ccpo/logged-in-redirect

Root url should redirect if user is already logged in
This commit is contained in:
richard-dds
2018-10-09 10:41:51 -04:00
committed by GitHub
4 changed files with 12 additions and 2 deletions

View File

@@ -18,6 +18,9 @@ bp = Blueprint("atst", __name__)
@bp.route("/")
def root():
if g.current_user:
return redirect(url_for(".home"))
redirect_url = app.config.get("CAC_URL")
if request.args.get("next"):
redirect_url = url.urljoin(