Compare commits

..

No commits in common. "07b4d6d73daefc5bfc728430bf9a1be3d244fcd3" and "8621662854b0d5fb89bd5b0cc4eacd03a6f77daf" have entirely different histories.

1 changed files with 0 additions and 24 deletions

View File

@ -359,25 +359,6 @@ class ConfigCollector {
return result;
}
/**
* Get the default username from the system
* @returns {string} Capitalized username\
*/
getDefaultUsername() {
let result = 'BMad';
try {
const os = require('node:os');
const userInfo = os.userInfo();
if (userInfo && userInfo.username) {
const username = userInfo.username;
result = username.charAt(0).toUpperCase() + username.slice(1);
}
} catch {
// Do nothing, just return 'BMad'
}
return result;
}
/**
* Collect configuration for a single module
* @param {string} moduleName - Module name
@ -623,11 +604,6 @@ class ConfigCollector {
}
}
// Special handling for user_name: default to system user
if (moduleName === 'core' && key === 'user_name' && !existingValue) {
item.default = this.getDefaultUsername();
}
// Determine question type and default value
let questionType = 'input';
let defaultValue = item.default;