mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 04:48:06 +00:00
rm comment
This commit is contained in:
@@ -106,7 +106,7 @@ def lookup_passdb(db, config: Config, user, cleartext_password):
|
|||||||
if userdata:
|
if userdata:
|
||||||
# Update last login time.
|
# Update last login time.
|
||||||
conn.execute(
|
conn.execute(
|
||||||
"UPDATE users SET last_login=? WHERE addr=?", (round(int(time.time()) // 86400), user) # only save the rounded down date of login
|
"UPDATE users SET last_login=? WHERE addr=?", (round(int(time.time()) // 86400), user)
|
||||||
)
|
)
|
||||||
|
|
||||||
userdata["home"] = f"/home/vmail/mail/{config.mail_domain}/{user}"
|
userdata["home"] = f"/home/vmail/mail/{config.mail_domain}/{user}"
|
||||||
|
|||||||
Reference in New Issue
Block a user