mirror of
https://github.com/tale/headplane.git
synced 2026-08-27 23:47:31 +00:00
fix: allow generating higher expiring preauthkeys
This commit is contained in:
@@ -64,13 +64,13 @@ export default function AddPreAuthKey(data: Props) {
|
|||||||
Key Expiration
|
Key Expiration
|
||||||
</Dialog.Text>
|
</Dialog.Text>
|
||||||
<Dialog.Text className="text-sm">
|
<Dialog.Text className="text-sm">
|
||||||
Set this key to expire between 1 and 90 days.
|
Set this key to expire after a certain number of days.
|
||||||
</Dialog.Text>
|
</Dialog.Text>
|
||||||
<NumberField
|
<NumberField
|
||||||
label="Expiry"
|
label="Expiry"
|
||||||
name="expiry"
|
name="expiry"
|
||||||
minValue={1}
|
minValue={1}
|
||||||
maxValue={90}
|
maxValue={365_000} // 1000 years
|
||||||
state={[expiry, setExpiry]}
|
state={[expiry, setExpiry]}
|
||||||
formatOptions={{
|
formatOptions={{
|
||||||
style: 'unit',
|
style: 'unit',
|
||||||
|
|||||||
Reference in New Issue
Block a user