fix remove @

This commit is contained in:
Urko 2023-08-04 23:04:44 +02:00
parent 63775d75c6
commit c1809ac130
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ func (p *Prosody) ChangePassword(user string, currentPwd string, newPwd string)
return errors.New("password is incorrect") 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. // Create a pipe to write to the process's standard input.
stdin, err := cmd.StdinPipe() stdin, err := cmd.StdinPipe()
if err != nil { if err != nil {