MCPcopy Create free account
hub / github.com/gogs/gogs / DeleteEmail

Method DeleteEmail

internal/database/users.go:1207–1209  ·  view source on GitHub ↗

DeleteEmail deletes the email address of the given user.

(ctx context.Context, userID int64, email string)

Source from the content-addressed store, hash-verified

1205
1206// DeleteEmail deletes the email address of the given user.
1207func (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.
1212type UserType int

Callers 3

usersDeleteEmailFunction · 0.80
DeleteEmailFunction · 0.80
DeleteEmailFunction · 0.80

Calls 2

DeleteMethod · 0.80
WhereMethod · 0.80

Tested by 1

usersDeleteEmailFunction · 0.64