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

Method SetNillableTwoFactorSecret

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

1174
1175// SetNillableTwoFactorSecret sets the "two_factor_secret" field if the given value is not nil.
1176func (uuo *UserUpdateOne) SetNillableTwoFactorSecret(s *string) *UserUpdateOne {
1177 if s != nil {
1178 uuo.SetTwoFactorSecret(*s)
1179 }
1180 return uuo
1181}
1182
1183// ClearTwoFactorSecret clears the value of the "two_factor_secret" field.
1184func (uuo *UserUpdateOne) ClearTwoFactorSecret() *UserUpdateOne {

Callers

nothing calls this directly

Calls 1

SetTwoFactorSecretMethod · 0.95

Tested by

no test coverage detected