add more logs
This commit is contained in:
parent
a0f16aa04e
commit
c2387b1017
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue