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

Method ChangePassword

agent/utils/postgresql/client/remote.go:175–177  ·  view source on GitHub ↗
(info PasswordChangeInfo)

Source from the content-addressed store, hash-verified

173}
174
175func (r *Remote) ChangePassword(info PasswordChangeInfo) error {
176 return r.ExecSQL(fmt.Sprintf("ALTER USER \"%s\" WITH ENCRYPTED PASSWORD '%s'", info.Username, info.Password), info.Timeout)
177}
178
179func (r *Remote) Backup(info BackupInfo) error {
180 if cmd.CheckIllegal(r.Password, r.Address, r.User, info.Name) {

Callers

nothing calls this directly

Calls 1

ExecSQLMethod · 0.95

Tested by

no test coverage detected