(user *User, phone, friendlyName string)
| 258 | } |
| 259 | |
| 260 | func NewPhoneFactor(user *User, phone, friendlyName string) *Factor { |
| 261 | factor := NewFactor(user, friendlyName, Phone, FactorStateUnverified) |
| 262 | factor.Phone = storage.NullString(phone) |
| 263 | return factor |
| 264 | } |
| 265 | |
| 266 | func NewWebAuthnFactor(user *User, friendlyName string) *Factor { |
| 267 | factor := NewFactor(user, friendlyName, WebAuthn, FactorStateUnverified) |