mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
test: create user via store
This commit is contained in:
parent
ea2a2561d8
commit
f9dab50d23
@ -139,7 +139,10 @@ func addUser() *db.User {
|
|||||||
Username: "ITU-" + uid,
|
Username: "ITU-" + uid,
|
||||||
Email: "test@semaphore." + uid,
|
Email: "test@semaphore." + uid,
|
||||||
}
|
}
|
||||||
if err := store.Sql().Insert(&user); err != nil {
|
|
||||||
|
user, err := store.CreateUserWithoutPassword(user)
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
return &user
|
return &user
|
||||||
|
Loading…
Reference in New Issue
Block a user