diff --git a/chatmaild/src/chatmaild/doveauth.py b/chatmaild/src/chatmaild/doveauth.py index bebd7629..79e82a46 100644 --- a/chatmaild/src/chatmaild/doveauth.py +++ b/chatmaild/src/chatmaild/doveauth.py @@ -107,7 +107,7 @@ def lookup_passdb(db, config: Config, user, cleartext_password): # Update last login time. conn.execute( "UPDATE users SET last_login=? WHERE addr=?", - (round(int(time.time()) // 86400), user), + (int(time.time() // 86400), user), ) userdata["home"] = f"/home/vmail/mail/{config.mail_domain}/{user}"