mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-18 08:00:44 +00:00
feat(database): improve MySQL user authorization (#13326)
This commit is contained in:
@@ -79,6 +79,11 @@ export const updateMysqlUserPassword = (params: Database.MysqlUserPassword) => {
|
||||
encodeBase64Fields(request, ['password']);
|
||||
return http.post(`/databases/users/password`, request);
|
||||
};
|
||||
export const saveMysqlUserPassword = (params: Database.MysqlUserPassword) => {
|
||||
let request = deepCopy(params) as Database.MysqlUserPassword;
|
||||
encodeBase64Fields(request, ['password']);
|
||||
return http.post(`/databases/users/password/save`, request);
|
||||
};
|
||||
export const searchMysqlGrants = (params: Database.MysqlUserSearch) => {
|
||||
return http.post<Database.MysqlGrant[]>(`/databases/grants/search`, params);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user