func (u User) isCorrectPassword(hashedPassword []byte) (bool, error) {
	ok, err := u.ph.IsCorrect(hashedPassword, u.password)
	if err != nil {
		return false, fmt.Errorf("checking to see if password is correct: %w", err)
	}
	return ok, nil
}
// isCorrectPassword returns whether or not the hashed form of the password is correct,
// returning an error if a problem occurs while checking it.
isCorrectPassword returns whether or not the hashed form of the password is correct,
returning an error if a problem occurs while checking it.
// isCorrectPassword returns whether or not the hashed form of the password is correct // returning an error if a problem occurs while checking it .
func (u User) isCorrectPassword(hashedPassword []byte) (bool, error) {
	ok, err := u.ph.IsCorrect(hashedPassword, u.password)
	if err != nil {
		return false, fmt.Errorf("checking to see if password is correct: %w", err)
	}
	return ok, nil
}
func ( u User ) isCorrectPassword ( hashedPassword [ ] byte ) ( bool , error ) { ok , err := u . ph . IsCorrect ( hashedPassword , u . password ) if err != nil { return false , fmt . Errorf ( " " , err ) } return ok , nil }
isCorrectPassword returns whether or not the hashed form of the password is correct,
returning an error if a problem occurs while checking it.
isCorrectPassword returns whether or not the hashed form of the password is correct returning an error if a problem occurs while checking it .