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

Method SetNillableTwoFactorSecret

ent/user_update.go:157–162  ·  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

155
156// SetNillableTwoFactorSecret sets the "two_factor_secret" field if the given value is not nil.
157func (uu *UserUpdate) SetNillableTwoFactorSecret(s *string) *UserUpdate {
158 if s != nil {
159 uu.SetTwoFactorSecret(*s)
160 }
161 return uu
162}
163
164// ClearTwoFactorSecret clears the value of the "two_factor_secret" field.
165func (uu *UserUpdate) ClearTwoFactorSecret() *UserUpdate {

Callers

nothing calls this directly

Calls 1

SetTwoFactorSecretMethod · 0.95

Tested by

no test coverage detected