1
Fork 0

Allow tokens with small expiration times.

There was a typo that prevented tokens with less than two days
validity.
This commit is contained in:
Juliusz Chroboczek 2024-03-03 13:29:44 +01:00
parent 0d7d54751a
commit 5fe578dcf5
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}