diff --git a/back/methods/vn-user/createUser.js b/back/methods/vn-user/createUser.js index 0c9151fb1..4dac4bcef 100644 --- a/back/methods/vn-user/createUser.js +++ b/back/methods/vn-user/createUser.js @@ -56,8 +56,6 @@ module.exports = function(Self) { } try { - if (!args.active) args.active = false; - delete args.ctx; // Remove unwanted properties const newUser = await models.VnUser.create(args, myOptions); diff --git a/e2e/paths/14-account/01_create_and_basic_data.spec.js b/e2e/paths/14-account/01_create_and_basic_data.spec.js index 9636fcf7a..e38d1aeec 100644 --- a/e2e/paths/14-account/01_create_and_basic_data.spec.js +++ b/e2e/paths/14-account/01_create_and_basic_data.spec.js @@ -1,7 +1,7 @@ import selectors from '../../helpers/selectors.js'; import getBrowser from '../../helpers/puppeteer'; -fdescribe('Account create and basic data path', () => { +describe('Account create and basic data path', () => { let browser; let page; diff --git a/modules/account/front/create/index.js b/modules/account/front/create/index.js index 41fd718f6..01ba7905b 100644 --- a/modules/account/front/create/index.js +++ b/modules/account/front/create/index.js @@ -2,6 +2,11 @@ import ngModule from '../module'; import Section from 'salix/components/section'; export default class Controller extends Section { + constructor($element, $) { + super($element, $); + this.user = {active: true}; + } + onSubmit() { return this.$.watcher.submit().then(res => { this.$state.go('account.card.basicData', {id: res.data.id});