mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 23:28:39 +03:00
shared mode: ensure to clear webdav cache for deleted users
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -790,8 +790,13 @@ func (s *httpdServer) renderUserPage(w http.ResponseWriter, r *http.Request, use
|
||||
title = "User template"
|
||||
currentURL = webTemplateUser
|
||||
}
|
||||
if user.Password != "" && user.IsPasswordHashed() && mode == userPageModeUpdate {
|
||||
user.Password = redactedSecret
|
||||
if user.Password != "" && user.IsPasswordHashed() {
|
||||
switch mode {
|
||||
case userPageModeUpdate:
|
||||
user.Password = redactedSecret
|
||||
default:
|
||||
user.Password = ""
|
||||
}
|
||||
}
|
||||
user.FsConfig.RedactedSecret = redactedSecret
|
||||
data := userPage{
|
||||
|
||||
Reference in New Issue
Block a user