diff --git a/internal/services/prosody/change_password.go b/internal/services/prosody/change_password.go index 6d989b4..7b187cb 100644 --- a/internal/services/prosody/change_password.go +++ b/internal/services/prosody/change_password.go @@ -33,7 +33,7 @@ func (p *Prosody) ChangePassword(user string, currentPwd string, newPwd string) return errors.New("password is incorrect") } - cmd := exec.Command("/usr/bin/prosodyctl", "passwd", user+"@"+p.plainDomain) + cmd := exec.Command("/usr/bin/prosodyctl", "passwd", user) // Create a pipe to write to the process's standard input. stdin, err := cmd.StdinPipe() if err != nil {