From c2387b10174491c7fc3873e912e3632319b0ad87 Mon Sep 17 00:00:00 2001 From: Urko Date: Fri, 7 Jul 2023 23:44:38 +0200 Subject: [PATCH] add more logs --- internal/services/prosody/change_password.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)