mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-22 15:40:23 +00:00
reduce share token duration
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
2749a98f26
commit
7fb5b1b996
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ const (
|
||||||
|
|
||||||
var (
|
var (
|
||||||
tokenDuration = 20 * time.Minute
|
tokenDuration = 20 * time.Minute
|
||||||
shareTokenDuration = 12 * time.Hour
|
shareTokenDuration = 2 * time.Hour
|
||||||
// csrf token duration is greater than normal token duration to reduce issues
|
// csrf token duration is greater than normal token duration to reduce issues
|
||||||
// with the login form
|
// with the login form
|
||||||
csrfTokenDuration = 6 * time.Hour
|
csrfTokenDuration = 6 * time.Hour
|
||||||
|
|
Loading…
Reference in a new issue