DeleteEmail deletes the email address of the given user.
(ctx context.Context, userID int64, email string)
| 1205 | |
| 1206 | // DeleteEmail deletes the email address of the given user. |
| 1207 | func (s *UsersStore) DeleteEmail(ctx context.Context, userID int64, email string) error { |
| 1208 | return s.db.WithContext(ctx).Where("uid = ? AND email = ?", userID, email).Delete(&EmailAddress{}).Error |
| 1209 | } |
| 1210 | |
| 1211 | // UserType indicates the type of the user account. |
| 1212 | type UserType int |