diff --git a/src/lib/services/user-service.ts b/src/lib/services/user-service.ts index 8d22d17256..5dba19c949 100644 --- a/src/lib/services/user-service.ts +++ b/src/lib/services/user-service.ts @@ -133,19 +133,13 @@ class UserService { const user = await this.store.insert({ username: 'admin', }); - this.logger.info(`Did the thing"`); const passwordHash = await bcrypt.hash(pwd, saltRounds); - this.logger.info(`Bcrypted that beast"`); await this.store.setPasswordHash(user.id, passwordHash); - this.logger.info(`Set the hash"`); await this.accessService.setUserRootRole( user.id, RoleName.ADMIN, ); } catch (e) { - console.log(`My error ${e}`); - console.log(e); - this.logger.error(e); this.logger.error('Unable to create default user "admin"'); } } diff --git a/src/server-dev.ts b/src/server-dev.ts index bdf85c3d2d..2d29a49676 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -12,7 +12,7 @@ process.nextTick(async () => { password: 'passord', host: 'localhost', port: 5432, - database: 'unleash3', + database: 'unleash', ssl: false, }, server: {