MCPcopy Create free account
hub / github.com/supabase/auth / HasPassword

Method HasPassword

internal/models/user.go:142–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140}
141
142func (u *User) HasPassword() bool {
143 var pwd string
144
145 if u.EncryptedPassword != nil {
146 pwd = *u.EncryptedPassword
147 }
148
149 return pwd != ""
150}
151
152// BeforeSave is invoked before the user is saved to the database
153func (u *User) BeforeSave(tx *pop.Connection) error {

Callers 4

signupVerifyMethod · 0.80
UserUpdateMethod · 0.80

Calls

no outgoing calls

Tested by 1