3 ms·
// VerifyPassword checks if password is valid and upgrades it if its encrypting scheme was outdated // Returns isValid, wasUpdated, error func (a *Account) Ver
by asdfasdfasjkl 11y ago
// VerifyPassword checks if password is valid and upgrades it if its encrypting scheme was outdated
// Returns isValid, wasUpdated, error
func (a *Account) VerifyPassword(password string) (bool, bool, error) {
this is why we need sum types people
- chrisbroadfoot 11y agoor just named return values func (a *Account) VerifyPassword(password string) (isValid, wasUpdated bool, err error) {