You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
377 B
12 lines
377 B
|
2 months ago
|
package mock
|
||
|
|
|
||
|
|
import "tera-clone/services/tera-api/internal/security/password"
|
||
|
|
|
||
|
|
func factoryAuthUsers(kdf password.KDF) (map[string]authUserRecord, error) {
|
||
|
|
admin, err := newAuthUser("terauser", "terauser", "administrator", permissionsForRole("administrator"), "terauser", kdf)
|
||
|
|
if err != nil {
|
||
|
|
return nil, err
|
||
|
|
}
|
||
|
|
return map[string]authUserRecord{"terauser": admin}, nil
|
||
|
|
}
|