MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / CreateUser

Function CreateUser

internal/op/user.go:68–71  ·  view source on GitHub ↗
(u *model.User)

Source from the content-addressed store, hash-verified

66}
67
68func CreateUser(u *model.User) error {
69 u.BasePath = utils.FixAndCleanPath(u.BasePath)
70 return db.CreateUser(u)
71}
72
73func DeleteUserById(id uint) error {
74 old, err := db.GetUserById(id)

Callers 3

initUserFunction · 0.92
CreateUserFunction · 0.92
LdapRegisterFunction · 0.92

Calls 2

FixAndCleanPathFunction · 0.92
CreateUserFunction · 0.92

Tested by

no test coverage detected