From 5fe578dcf5e68f00281ed7b93fdfd5069f7fabff Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sun, 3 Mar 2024 13:29:44 +0100 Subject: [PATCH] Allow tokens with small expiration times. There was a typo that prevented tokens with less than two days validity. --- static/galene.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/galene.js b/static/galene.js index e349fe9..0f226fe 100644 --- a/static/galene.js +++ b/static/galene.js @@ -2154,7 +2154,7 @@ function inviteMenu() { let ex = getInputElement('invite-expires'); let expires = new Date(now); expires.setDate(expires.getDate() + 2); - ex.min = dateToInput(expires); + ex.min = dateToInput(now); ex.value = dateToInput(expires); d.showModal(); }