mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-21 15:10:23 +00:00
ftp login: log is TLS is enabled
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
92aa89263b
commit
0da12ef47b
1 changed files with 2 additions and 1 deletions
|
@ -199,7 +199,8 @@ func (s *Server) AuthUser(cc ftpserver.ClientContext, username, password string)
|
|||
return nil, err
|
||||
}
|
||||
setStartDirectory(user.Filters.StartDirectory, cc)
|
||||
connection.Log(logger.LevelInfo, "User %q logged in with %q from ip %q", user.Username, loginMethod, ipAddr)
|
||||
connection.Log(logger.LevelInfo, "User %q logged in with %q from ip %q, TLS enabled? %t",
|
||||
user.Username, loginMethod, ipAddr, cc.HasTLSForControl())
|
||||
dataprovider.UpdateLastLogin(&user)
|
||||
return connection, nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue