MCPcopy Index your code
hub / github.com/filebrowser/filebrowser / Save

Method Save

users/storage.go:103–109  ·  view source on GitHub ↗

Save saves the user in a storage.

(user *User)

Source from the content-addressed store, hash-verified

101
102// Save saves the user in a storage.
103func (s *Storage) Save(user *User) error {
104 if err := user.Clean("", false); err != nil {
105 return err
106 }
107
108 return s.back.Save(user)
109}
110
111// Delete allows you to delete a user by its name or username. The provided
112// id must be a string for username lookup or a uint for id lookup. If id

Callers

nothing calls this directly

Calls 2

SaveMethod · 0.65
CleanMethod · 0.45

Tested by

no test coverage detected