This commit is contained in:
Clint Brown committed 2018-04-24 17:34:14 +10:00
1 parent ea96b7b7ce
commit f83d6246cb
1 file changed
+6 -1
+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);