fix remove @
This commit is contained in:
parent
63775d75c6
commit
c1809ac130
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue