From 8efecdec185cb6a0858a0d45765dbf5cd3f4afb8 Mon Sep 17 00:00:00 2001 From: KernelDeimos <7225168+KernelDeimos@users.noreply.github.com> Date: Wed, 15 Oct 2025 17:35:08 -0400 Subject: [PATCH] devex: update default admin password output --- .../src/modules/selfhosted/DefaultUserService.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/backend/src/modules/selfhosted/DefaultUserService.js b/src/backend/src/modules/selfhosted/DefaultUserService.js index b5c633684..901e29e41 100644 --- a/src/backend/src/modules/selfhosted/DefaultUserService.js +++ b/src/backend/src/modules/selfhosted/DefaultUserService.js @@ -89,7 +89,18 @@ class DefaultUserService extends BaseService { ); if ( ! is_default_password ) return; - console.log(`password for admin is: ${tmp_password}`); + // console.log(`password for admin is: ${tmp_password}`); + const svc_devConsole = this.services.get('dev-console'); + + svc_devConsole.notice({ + colors: { bg: '38;2;0;0;0;48;2;0;252;202;1', bginv: '38;2;0;252;202' }, + title: 'Your default \'admin\' login', + lines: [ + 'username: admin', + 'password: ' + tmp_password, + 'You should change this password.', + ], + }); // show console widget this.default_user_widget = ({ is_docker }) => { @@ -115,7 +126,6 @@ class DefaultUserService extends BaseService { }; this.default_user_widget.critical = true; this.start_poll_({ tmp_password, user }); - const svc_devConsole = this.services.get('dev-console'); svc_devConsole.add_widget(this.default_user_widget); } start_poll_ ({ tmp_password, user }) {