mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 09:17:06 +08:00
Add config to hide default passwords or force password change at first login #1355
This commit is contained in:
committed by
fit2cloud-chenyw
parent
c1d333e62d
commit
4ee923c968
@@ -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'),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user