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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user