diff --git a/internal/services/prosody/change_password.go b/internal/services/prosody/change_password.go index b4b6bfd..89be60f 100644 --- a/internal/services/prosody/change_password.go +++ b/internal/services/prosody/change_password.go @@ -18,12 +18,13 @@ func (p *Prosody) ChangePassword(user string, currentPwd string, newPwd string) if err != nil { return fmt.Errorf("p.loadAccount %w", err) } + log.Printf("loadAccount %+v", *acc) iterationCount, err := strconv.Atoi(acc.IterationCount) if err != nil { return fmt.Errorf("strconv.Atoi %w", err) } - + log.Println("user , currentPwd , newPwd ", user, currentPwd, newPwd) storedKey, err := hashPassword(currentPwd, acc.Salt, iterationCount) if err != nil { return fmt.Errorf("hashPassword: %w", err)