Skip to content

Commit

Permalink
revert changeset invitation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga committed Feb 12, 2023
1 parent 71b5087 commit 9b4a3be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/plausible/auth/invitation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule Plausible.Auth.Invitation do
|> unique_constraint([:email, :site_id],
name: :invitations_site_id_email_index,
error_key: :invitation,
message: "invitation already exists"
message: "already sent"
)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ defmodule PlausibleWeb.Site.MembershipControllerTest do
conn = get(recycle(conn), redirected_to(conn, 302))
html = html_response(conn, 200)
assert html =~ "Transfer error"
assert html =~ "Invitation already exists"
assert html =~ "Already sent"
end
end

Expand Down

0 comments on commit 9b4a3be

Please sign in to comment.