Skip to content
Snippets Groups Projects
Commit 03cbd08a authored by kaiyou's avatar kaiyou
Browse files

Log profile creation

parent 6f653db5
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,7 @@ def create_profile():
profile.service = service
profile.comment = form.comment.data
models.db.session.add(profile)
models.log(models.History.CREATE, profile.username, profile.comment)
models.db.session.commit()
return flask.redirect(utils.url_or_intent("account.home"))
return flask.render_template("profile_create.html",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment