Allow tokens with small expiration times.
There was a typo that prevented tokens with less than two days validity.
This commit is contained in:
+1
-1
@@ -2154,7 +2154,7 @@ function inviteMenu() {
|
|||||||
let ex = getInputElement('invite-expires');
|
let ex = getInputElement('invite-expires');
|
||||||
let expires = new Date(now);
|
let expires = new Date(now);
|
||||||
expires.setDate(expires.getDate() + 2);
|
expires.setDate(expires.getDate() + 2);
|
||||||
ex.min = dateToInput(expires);
|
ex.min = dateToInput(now);
|
||||||
ex.value = dateToInput(expires);
|
ex.value = dateToInput(expires);
|
||||||
d.showModal();
|
d.showModal();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user