1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 23:35:46 +01:00

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

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