MCPcopy Create free account
hub / github.com/muety/wakapi / IsValid

Method IsValid

models/user.go:267–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

265}
266
267func (r *UserDataUpdate) IsValid() bool {
268 return ValidateEmail(r.Email) && ValidateTimezone(r.Location) && ValidateStartOfWeek(r.StartOfWeek)
269}
270
271func ValidateUsername(username string) bool {
272 return len(username) >= 1 && username != "current" && !strings.Contains(username, " ")

Callers 1

actionUpdateUserMethod · 0.95

Calls 3

ValidateTimezoneFunction · 0.85
ValidateStartOfWeekFunction · 0.85
ValidateEmailFunction · 0.70

Tested by

no test coverage detected