mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 12:58:04 +00:00
doveauth: log when a new account is created
This commit is contained in:
@@ -48,6 +48,9 @@
|
|||||||
- Add nonci_accounts metric
|
- Add nonci_accounts metric
|
||||||
([#347](https://github.com/deltachat/chatmail/pull/347))
|
([#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
|
## 1.3.0 - 2024-06-06
|
||||||
|
|
||||||
- don't check necessary DNS records on cmdeploy init anymore
|
- don't check necessary DNS records on cmdeploy init anymore
|
||||||
|
|||||||
@@ -121,6 +121,7 @@ def lookup_passdb(db, config: Config, user, cleartext_password):
|
|||||||
q = """INSERT INTO users (addr, password, last_login)
|
q = """INSERT INTO users (addr, password, last_login)
|
||||||
VALUES (?, ?, ?)"""
|
VALUES (?, ?, ?)"""
|
||||||
conn.execute(q, (user, encrypted_password, int(time.time())))
|
conn.execute(q, (user, encrypted_password, int(time.time())))
|
||||||
|
print(f"Created account {user}", file=sys.stderr)
|
||||||
return dict(
|
return dict(
|
||||||
home=f"/home/vmail/mail/{config.mail_domain}/{user}",
|
home=f"/home/vmail/mail/{config.mail_domain}/{user}",
|
||||||
uid="vmail",
|
uid="vmail",
|
||||||
|
|||||||
Reference in New Issue
Block a user