aboutsummaryrefslogtreecommitdiffstats
path: root/models/user/email_address.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user/email_address.go')
-rw-r--r--models/user/email_address.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/models/user/email_address.go b/models/user/email_address.go
index 957e72fe89..216840916d 100644
--- a/models/user/email_address.go
+++ b/models/user/email_address.go
@@ -332,9 +332,7 @@ func MakeEmailPrimary(ctx context.Context, email *EmailAddress) error {
return err
} else if !has {
return ErrUserNotExist{
- UID: email.UID,
- Name: "",
- KeyID: 0,
+ UID: email.UID,
}
}