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