@hapiboo/module-auth 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -217,6 +217,7 @@ var authenticationService;
|
|
|
217
217
|
core_1.promise.checkVoid(authorization_1.authorizationService.general.initializeSecurityModel(), reject)
|
|
218
218
|
.then(() => {
|
|
219
219
|
//create first admin
|
|
220
|
+
console.info('creating first admin user: ' + settings_1.authSettings.firstAdmin.email);
|
|
220
221
|
core_1.promise.resolve(admin.invite(settings_1.authSettings.firstAdmin.email, settings_1.authSettings.firstAdmin.email, settings_1.authSettings.firstAdmin.name, baseURL), resolve, reject);
|
|
221
222
|
});
|
|
222
223
|
}
|
package/dist/service/settings.js
CHANGED
|
@@ -17,6 +17,7 @@ var authSettings;
|
|
|
17
17
|
};
|
|
18
18
|
let _performers = undefined;
|
|
19
19
|
function init(settings, performers) {
|
|
20
|
+
console.log('authSettings.init()');
|
|
20
21
|
_settings = settings;
|
|
21
22
|
_performers = performers;
|
|
22
23
|
}
|
|
@@ -34,6 +35,7 @@ var authSettings;
|
|
|
34
35
|
return _settings.passwordHashIterations;
|
|
35
36
|
})();
|
|
36
37
|
authSettings.firstAdmin = (() => {
|
|
38
|
+
console.info('authSettings.firstAdmin: ' + _settings.firstAdmin.name + ' <' + _settings.firstAdmin.email + '>');
|
|
37
39
|
return {
|
|
38
40
|
name: _settings.firstAdmin.name,
|
|
39
41
|
email: _settings.firstAdmin.email
|