Merge pull request #337 from dod-ccpo/user-profile-screen

User profile screen
This commit is contained in:
andrewdds
2018-09-26 11:31:08 -04:00
committed by GitHub
7 changed files with 154 additions and 6 deletions

View File

@@ -7,6 +7,7 @@ from atst.domain.users import Users
from atst.domain.authnid import AuthenticationContext
from atst.domain.audit_log import AuditLog
from atst.domain.auth import logout as _logout
from atst.forms.edit_user import EditUserForm
bp = Blueprint("atst", __name__)
@@ -89,3 +90,16 @@ def logout():
def activity_history():
audit_events = AuditLog.get_all_events(g.current_user)
return render_template("audit_log.html", audit_events=audit_events)
@bp.route("/user")
def user():
form = EditUserForm(request.form)
user = g.current_user
return render_template("user/edit.html", form=form, user=user)
@bp.route("/save_user")
def save_user():
# no op
return redirect(url_for(".home"))