Merge branch 'gdpr-username' of github.com:coralproject/talk into gdpr-username

* 'gdpr-username' of github.com:coralproject/talk:
  Fix lint
  Add missing ctx arg for CLI users create
This commit is contained in:
okbel
2018-04-25 13:13:38 -03:00
+8 -1
View File
@@ -287,8 +287,15 @@ async function createUser() {
const { email, username, password, role } = answers;
const ctx = Context.forSystem();
// Create the user.
const user = await UsersService.createLocalUser(email, password, username);
const user = await UsersService.createLocalUser(
ctx,
email,
password,
username
);
// Set the role.
await UsersService.setRole(user.id, role);