MCPcopy Index your code
hub / github.com/foxcpp/maddy / CreateUser

Method CreateUser

internal/auth/pass_table/table.go:114–118  ·  view source on GitHub ↗
(username, password string)

Source from the content-addressed store, hash-verified

112}
113
114func (a *Auth) CreateUser(username, password string) error {
115 return a.CreateUserHash(username, password, HashBcrypt, HashOpts{
116 BcryptCost: bcrypt.DefaultCost,
117 })
118}
119
120func (a *Auth) CreateUserHash(username, password string, hashAlgo string, opts HashOpts) error {
121 tbl, ok := a.table.(module.MutableTable)

Callers

nothing calls this directly

Calls 1

CreateUserHashMethod · 0.95

Tested by

no test coverage detected