add more logs

This commit is contained in:
Urko 2023-07-07 23:44:38 +02:00
parent a0f16aa04e
commit c2387b1017
1 changed files with 2 additions and 1 deletions

View File

@ -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)