MCPcopy Create free account
hub / github.com/netlify/gotrue / UpdatePassword

Method UpdatePassword

models/user.go:197–204  ·  view source on GitHub ↗
(tx *storage.Connection, password string)

Source from the content-addressed store, hash-verified

195}
196
197func (u *User) UpdatePassword(tx *storage.Connection, password string) error {
198 pw, err := hashPassword(password)
199 if err != nil {
200 return err
201 }
202 u.EncryptedPassword = pw
203 return tx.UpdateOnly(u, "encrypted_password")
204}
205
206// Authenticate a user from a password
207func (u *User) Authenticate(password string) bool {

Callers 3

adminUserUpdateMethod · 0.80
signupVerifyMethod · 0.80
UserUpdateMethod · 0.80

Calls 2

hashPasswordFunction · 0.85
UpdateOnlyMethod · 0.80

Tested by

no test coverage detected