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

Method SetNillablePassword

ent/user_update.go:1121–1126  ·  view source on GitHub ↗

SetNillablePassword sets the "password" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

1119
1120// SetNillablePassword sets the "password" field if the given value is not nil.
1121func (uuo *UserUpdateOne) SetNillablePassword(s *string) *UserUpdateOne {
1122 if s != nil {
1123 uuo.SetPassword(*s)
1124 }
1125 return uuo
1126}
1127
1128// ClearPassword clears the value of the "password" field.
1129func (uuo *UserUpdateOne) ClearPassword() *UserUpdateOne {

Callers

nothing calls this directly

Calls 1

SetPasswordMethod · 0.95

Tested by

no test coverage detected