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

Method SetTwoFactorSecret

ent/user_update.go:1170–1173  ·  view source on GitHub ↗

SetTwoFactorSecret sets the "two_factor_secret" field.

(s string)

Source from the content-addressed store, hash-verified

1168
1169// SetTwoFactorSecret sets the "two_factor_secret" field.
1170func (uuo *UserUpdateOne) SetTwoFactorSecret(s string) *UserUpdateOne {
1171 uuo.mutation.SetTwoFactorSecret(s)
1172 return uuo
1173}
1174
1175// SetNillableTwoFactorSecret sets the "two_factor_secret" field if the given value is not nil.
1176func (uuo *UserUpdateOne) SetNillableTwoFactorSecret(s *string) *UserUpdateOne {

Callers 1

Calls 1

SetTwoFactorSecretMethod · 0.45

Tested by

no test coverage detected