This commit is contained in:
Clint Brown
2018-04-24 17:33:47 +10:00
parent ea96b7b7ce
commit f83d6246cb
+6 -1
View File
@@ -290,7 +290,12 @@ async function createUser() {
const ctx = Context.forSystem();
// Create the user.
const user = await UsersService.createLocalUser(ctx, email, password, username);
const user = await UsersService.createLocalUser(
ctx,
email,
password,
username
);
// Set the role.
await UsersService.setRole(user.id, role);