From c1809ac13051b3de6e286b261ca102037282e251 Mon Sep 17 00:00:00 2001 From: Urko Date: Fri, 4 Aug 2023 23:04:44 +0200 Subject: [PATCH] fix remove @ --- internal/services/prosody/change_password.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {