Add config to hide default passwords or force password change at first login #1355

This commit is contained in:
fit2cloud-chenyw
2026-09-02 16:41:01 +08:00
committed by fit2cloud-chenyw
parent c1d333e62d
commit 4ee923c968
18 changed files with 319 additions and 22 deletions
+8
View File
@@ -14,6 +14,14 @@ export const AuthApi = {
},
})
},
changePwd: (data: { account: string; pwd: string; new_pwd: string }) => {
const entry = {
account: LicenseGenerator.sqlbotEncrypt(data.account),
pwd: LicenseGenerator.sqlbotEncrypt(data.pwd),
new_pwd: LicenseGenerator.sqlbotEncrypt(data.new_pwd),
}
return request.post('/login/change-pwd', entry)
},
logout: (data: any) => request.post('/login/logout', data),
info: () => request.get('/user/info'),
}