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 {
|
if err != nil {
|
||||||
return fmt.Errorf("p.loadAccount %w", err)
|
return fmt.Errorf("p.loadAccount %w", err)
|
||||||
}
|
}
|
||||||
|
log.Printf("loadAccount %+v", *acc)
|
||||||
|
|
||||||
iterationCount, err := strconv.Atoi(acc.IterationCount)
|
iterationCount, err := strconv.Atoi(acc.IterationCount)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("strconv.Atoi %w", err)
|
return fmt.Errorf("strconv.Atoi %w", err)
|
||||||
}
|
}
|
||||||
|
log.Println("user , currentPwd , newPwd ", user, currentPwd, newPwd)
|
||||||
storedKey, err := hashPassword(currentPwd, acc.Salt, iterationCount)
|
storedKey, err := hashPassword(currentPwd, acc.Salt, iterationCount)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("hashPassword: %w", err)
|
return fmt.Errorf("hashPassword: %w", err)
|
||||||
|
|
Loading…
Reference in New Issue