Fix bugs: office auth, PDF worker, sidebar pins, direct downloads
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m0s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m0s
This commit is contained in:
parent
e88243f097
commit
bfe55e2bfc
6 changed files with 74 additions and 32 deletions
|
|
@ -141,7 +141,7 @@ func GenerateEditToken(userID int, username, secret, filePath string) (string, e
|
|||
claims := jwt.MapClaims{
|
||||
"sub": userID,
|
||||
"username": username,
|
||||
"exp": time.Now().Add(24 * time.Hour).Unix(),
|
||||
"exp": time.Now().Add(7 * 24 * time.Hour).Unix(),
|
||||
"iat": time.Now().Unix(),
|
||||
"type": "edit",
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue