MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / SetNillableTwoFactorSecret

Method SetNillableTwoFactorSecret

ent/user_create.go:138–143  ·  view source on GitHub ↗

SetNillableTwoFactorSecret sets the "two_factor_secret" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

136
137// SetNillableTwoFactorSecret sets the "two_factor_secret" field if the given value is not nil.
138func (uc *UserCreate) SetNillableTwoFactorSecret(s *string) *UserCreate {
139 if s != nil {
140 uc.SetTwoFactorSecret(*s)
141 }
142 return uc
143}
144
145// SetAvatar sets the "avatar" field.
146func (uc *UserCreate) SetAvatar(s string) *UserCreate {

Callers

nothing calls this directly

Calls 1

SetTwoFactorSecretMethod · 0.95

Tested by

no test coverage detected