mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
groups: add expiration date override
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -409,7 +409,6 @@ func verifyCSRFToken(tokenString, ip string) error {
|
||||
|
||||
if tokenValidationMode != tokenValidationNoIPMatch {
|
||||
if !util.Contains(token.Audience(), ip) {
|
||||
fmt.Printf("ip %v audience %+v\n\n", ip, token.Audience())
|
||||
logger.Debug(logSender, "", "error validating CSRF token IP audience")
|
||||
return errors.New("the form token is not valid")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user