summaryrefslogtreecommitdiff
path: root/src/jwebmail
diff options
context:
space:
mode:
Diffstat (limited to 'src/jwebmail')
-rw-r--r--src/jwebmail/read_mails.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jwebmail/read_mails.py b/src/jwebmail/read_mails.py
index e010a7d..915567c 100644
--- a/src/jwebmail/read_mails.py
+++ b/src/jwebmail/read_mails.py
@@ -51,7 +51,7 @@ def load_user(username: str) -> JWebmailUser:
username="jwebmail",
password=passwd,
)
- passwd = r.get(f"jwm:user:{username}") # EXPIRATION_SEC
+ passwd = r.getex(f"jwm:user:{username}", EXPIRATION_SEC)
if passwd is None:
return None
return JWebmailUser(username, passwd)