diff --git a/internal/dataprovider/dataprovider.go b/internal/dataprovider/dataprovider.go index dbd98947..a5c6fd8f 100644 --- a/internal/dataprovider/dataprovider.go +++ b/internal/dataprovider/dataprovider.go @@ -4487,6 +4487,7 @@ func doExternalAuth(username, password string, pubKey []byte, keyboardInteractiv webDAVUsersCache.swap(&user, password) } cachedUserPasswords.Add(user.Username, password, user.Password) + executeAction(operationUpdate, ActionExecutorSelf, "", actionObjectUser, user.Username, "", &user) } return user, err } @@ -4494,6 +4495,7 @@ func doExternalAuth(username, password string, pubKey []byte, keyboardInteractiv if err != nil { return user, err } + executeAction(operationAdd, ActionExecutorSelf, "", actionObjectUser, user.Username, "", &user) return provider.userExists(user.Username, "") } @@ -4559,6 +4561,7 @@ func doPluginAuth(username, password string, pubKey []byte, ip, protocol string, webDAVUsersCache.swap(&user, password) } cachedUserPasswords.Add(user.Username, password, user.Password) + executeAction(operationUpdate, ActionExecutorSelf, "", actionObjectUser, user.Username, "", &user) } return user, err } @@ -4566,6 +4569,7 @@ func doPluginAuth(username, password string, pubKey []byte, ip, protocol string, if err != nil { return user, err } + executeAction(operationAdd, ActionExecutorSelf, "", actionObjectUser, user.Username, "", &user) return provider.userExists(user.Username, "") }