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

Method HasMFAEnabled

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

Source from the content-addressed store, hash-verified

858}
859
860func (u *User) HasMFAEnabled() bool {
861 for _, factor := range u.Factors {
862 if factor.IsVerified() {
863 return true
864 }
865 }
866
867 return false
868}
869
870func (u *User) UpdateBannedUntil(tx *storage.Connection) error {
871 return tx.UpdateOnly(u, "banned_until")

Callers 2

UserUpdateMethod · 0.80

Calls 1

IsVerifiedMethod · 0.80

Tested by

no test coverage detected