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

Method SetTwoFactorSecret

ent/user_create.go:132–135  ·  view source on GitHub ↗

SetTwoFactorSecret sets the "two_factor_secret" field.

(s string)

Source from the content-addressed store, hash-verified

130
131// SetTwoFactorSecret sets the "two_factor_secret" field.
132func (uc *UserCreate) SetTwoFactorSecret(s string) *UserCreate {
133 uc.mutation.SetTwoFactorSecret(s)
134 return uc
135}
136
137// SetNillableTwoFactorSecret sets the "two_factor_secret" field if the given value is not nil.
138func (uc *UserCreate) SetNillableTwoFactorSecret(s *string) *UserCreate {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected