(email string)
| 177 | } |
| 178 | |
| 179 | func (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 | |
| 187 | func (user *userImpl) RoleNames() ch.TimedSet { |
| 188 | if user.RoleInvalSeq != 0 { |
nothing calls this directly
no test coverage detected