Skip to content

Commit

Permalink
Merge pull request #20 from cjahv/master
Browse files Browse the repository at this point in the history
feat(security): 移除系统默认用户名和密码配置以提升安全性
  • Loading branch information
royalknight56 authored Nov 4, 2024
2 parents 33cec5f + 39ae48d commit 3abaa8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function loginSuccess() {
// lockClassName.value = 'screen-hide';
// }, 500);
}
const userName = ref(sys._options.login?.username || 'admin');
const userName = ref(sys._options.login?.username || '');
const userPassword = ref(sys._options.login?.password || '');
async function onLogin() {
if (loginCallback) {
Expand Down
4 changes: 2 additions & 2 deletions packages/vtron/src/packages/kernel/system/initConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export const defaultConfig: SystemOptions = {
userLocation: '/C/Users/',
systemLocation: '/C/System/',
login: {
username: localStorage.getItem('vtron-username') || 'admin',
password: 'admin',
username: localStorage.getItem('vtron-username') || '',
password: '',
init: () => {
return !localStorage.getItem('vtron-username');
},
Expand Down

0 comments on commit 3abaa8b

Please sign in to comment.