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

Method SetNillablePassword

ent/user_create.go:96–101  ·  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

94
95// SetNillablePassword sets the "password" field if the given value is not nil.
96func (uc *UserCreate) SetNillablePassword(s *string) *UserCreate {
97 if s != nil {
98 uc.SetPassword(*s)
99 }
100 return uc
101}
102
103// SetStatus sets the "status" field.
104func (uc *UserCreate) SetStatus(u user.Status) *UserCreate {

Callers

nothing calls this directly

Calls 1

SetPasswordMethod · 0.95

Tested by

no test coverage detected