diff --git a/internal/api/verify.go b/internal/api/verify.go index ecacc1e9ac..9e1cafde41 100644 --- a/internal/api/verify.go +++ b/internal/api/verify.go @@ -533,7 +533,7 @@ func (a *API) emailChangeVerify(r *http.Request, ctx context.Context, conn *stor return terr } } - if terr := tx.Load(user, "Identities"); terr != nil { + if terr := tx.Load(user, models.Identity{}.TableName()); terr != nil { return internalServerError("Error refetching identities").WithInternalError(terr) } if terr := user.ConfirmEmailChange(tx, zeroConfirmation); terr != nil {