mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
allow to store temporary sessions within the data provider
so we can persist password reset codes, OIDC auth sessions and tokens. These features will also work in multi-node setups without sicky sessions now Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -560,11 +560,11 @@ func (c *scpCommand) getCommandType() string {
|
||||
}
|
||||
|
||||
func (c *scpCommand) sendFileTime() bool {
|
||||
return util.IsStringInSlice("-p", c.args)
|
||||
return util.Contains(c.args, "-p")
|
||||
}
|
||||
|
||||
func (c *scpCommand) isRecursive() bool {
|
||||
return util.IsStringInSlice("-r", c.args)
|
||||
return util.Contains(c.args, "-r")
|
||||
}
|
||||
|
||||
// read the SCP confirmation message and the optional text message
|
||||
|
||||
Reference in New Issue
Block a user