user route
This commit is contained in:
parent
ab14c214c2
commit
27a806d7f8
@ -7,6 +7,7 @@ from atst.domain.users import Users
|
|||||||
from atst.domain.authnid import AuthenticationContext
|
from atst.domain.authnid import AuthenticationContext
|
||||||
from atst.domain.audit_log import AuditLog
|
from atst.domain.audit_log import AuditLog
|
||||||
from atst.domain.auth import logout as _logout
|
from atst.domain.auth import logout as _logout
|
||||||
|
from atst.forms.edit_user import EditUserForm
|
||||||
|
|
||||||
|
|
||||||
bp = Blueprint("atst", __name__)
|
bp = Blueprint("atst", __name__)
|
||||||
@ -89,3 +90,10 @@ def logout():
|
|||||||
def activity_history():
|
def activity_history():
|
||||||
audit_events = AuditLog.get_all_events(g.current_user)
|
audit_events = AuditLog.get_all_events(g.current_user)
|
||||||
return render_template("audit_log.html", audit_events=audit_events)
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user