From 62c60d30705e6e47e623d332223b8e400dbaee61 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 8 Jul 2024 19:57:17 +0000 Subject: [PATCH] doveauth: log when a new account is created --- CHANGELOG.md | 3 +++ chatmaild/src/chatmaild/doveauth.py | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd323818..af8703f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,9 @@ - Add nonci_accounts metric ([#347](https://github.com/deltachat/chatmail/pull/347)) +- doveauth: log when a new account is created + ([#349](https://github.com/deltachat/chatmail/pull/349)) + ## 1.3.0 - 2024-06-06 - don't check necessary DNS records on cmdeploy init anymore diff --git a/chatmaild/src/chatmaild/doveauth.py b/chatmaild/src/chatmaild/doveauth.py index 700fa73e..51453f65 100644 --- a/chatmaild/src/chatmaild/doveauth.py +++ b/chatmaild/src/chatmaild/doveauth.py @@ -121,6 +121,7 @@ def lookup_passdb(db, config: Config, user, cleartext_password): q = """INSERT INTO users (addr, password, last_login) VALUES (?, ?, ?)""" conn.execute(q, (user, encrypted_password, int(time.time()))) + print(f"Created account {user}", file=sys.stderr) return dict( home=f"/home/vmail/mail/{config.mail_domain}/{user}", uid="vmail",