MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / SetEmail

Method SetEmail

auth/user.go:179–185  ·  view source on GitHub ↗
(email string)

Source from the content-addressed store, hash-verified

177}
178
179func (user *userImpl) SetEmail(email string) error {
180 if email != "" && !IsValidEmail(email) {
181 return base.HTTPErrorf(http.StatusBadRequest, "Invalid email address")
182 }
183 user.Email_ = email
184 return nil
185}
186
187func (user *userImpl) RoleNames() ch.TimedSet {
188 if user.RoleInvalSeq != 0 {

Callers

nothing calls this directly

Calls 2

HTTPErrorfFunction · 0.92
IsValidEmailFunction · 0.85

Tested by

no test coverage detected