MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / updateDevicePasswd

Function updateDevicePasswd

frontend/src/api/modules/toolbox.ts:23–25  ·  view source on GitHub ↗
(user: string, passwd: string)

Source from the content-addressed store, hash-verified

21 return http.post(`/toolbox/device/update/host`, param, TimeoutEnum.T_60S);
22};
23export const updateDevicePasswd = (user: string, passwd: string) => {
24 return http.post(`/toolbox/device/update/passwd`, { user: user, passwd: encodeBase64(passwd) }, TimeoutEnum.T_60S);
25};
26export const updateDeviceSwap = (params: Toolbox.SwapHelper) => {
27 return http.post(`/toolbox/device/update/swap`, params, TimeoutEnum.T_10M);
28};

Callers

nothing calls this directly

Calls 2

encodeBase64Function · 0.90
postMethod · 0.80

Tested by

no test coverage detected