implement authentication redirect

This commit is contained in:
dandds
2018-08-03 15:51:44 -04:00
parent 9937b77c74
commit ea5c9732ba
6 changed files with 29 additions and 10 deletions

View File

@@ -46,7 +46,7 @@ _DEV_USERS = {
@bp.route("/login-dev")
def get():
def login_dev():
role = request.args.get("username", "amanda")
user_data = _DEV_USERS[role]
user = _set_user_permissions(user_data["dod_id"], user_data["atat_role"])