From 03cbd08af4a35004e921c33f53085dba92282490 Mon Sep 17 00:00:00 2001
From: kaiyou <pierre@jaury.eu>
Date: Sat, 14 Sep 2019 21:22:53 +0200
Subject: [PATCH] Log profile creation

---
 trurt/account/profiles.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/trurt/account/profiles.py b/trurt/account/profiles.py
index 6ac27d8..8e5a8af 100644
--- a/trurt/account/profiles.py
+++ b/trurt/account/profiles.py
@@ -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",
-- 
GitLab