Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Fix invitation links
Uku Taht6fe032880ad4
diff --git a/lib/plausible_web/controllers/auth_controller.ex b/lib/plausible_web/controllers/auth_controller.exindex 011beec501..d70ba6cc9b 100644--- a/lib/plausible_web/controllers/auth_controller.ex+++ b/lib/plausible_web/controllers/auth_controller.ex@@ -82,7 +82,8 @@ defmodule PlausibleWeb.AuthController dorender(conn, "register_from_invitation_form.html",changeset: changeset,invitation: invitation,- layout: {PlausibleWeb.LayoutView, "focus.html"}+ layout: {PlausibleWeb.LayoutView, "focus.html"},+ skip_plausible_tracking: true)elserender(conn, "invitation_expired.html", layout: {PlausibleWeb.LayoutView, "focus.html"})diff --git a/lib/plausible_web/templates/auth/register_from_invitation_form.html.eex b/lib/plausible_web/templates/auth/register_from_invitation_form.html.eexindex bd11a1c227..b5fdef97f0 100644--- a/lib/plausible_web/templates/auth/register_from_invitation_form.html.eex+++ b/lib/plausible_web/templates/auth/register_from_invitation_form.html.eex@@ -11,7 +11,7 @@<p class="text-xs text-gray-500 mt-1">No spam, guaranteed.</p></div><div class="mt-1">- <%= email_input f, :email, class: "dark:bg-gray-900 shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 dark:border-gray-500 rounded-md dark:text-gray-300", placeholder: "[email protected]", value: @invitation.email, readonly: "readonly" %>+ <%= email_input f, :email, class: "bg-gray-100 dark:bg-gray-900 shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 dark:border-gray-500 rounded-md dark:text-gray-300", placeholder: "[email protected]", value: @invitation.email, readonly: "readonly" %></div><%= error_tag f, :email %></div>diff --git a/lib/plausible_web/templates/email/new_user_invitation.html.eex b/lib/plausible_web/templates/email/new_user_invitation.html.eexindex 8e8ab7552a..d21a004ab2 100644--- a/lib/plausible_web/templates/email/new_user_invitation.html.eex+++ b/lib/plausible_web/templates/email/new_user_invitation.html.eex@@ -1,7 +1,7 @@Hey,<br /><br /><%= @invitation.inviter.email %> has invited you to join the <%= @invitation.site.domain %> site on Plausible Analytics.-<%= link("Click here", to: Routes.auth_url(PlausibleWeb.Endpoint, :register_form), invitation: @invitation.invitation_id) %> to create your account. The link is valid for 48 hours after this email is sent.+<%= link("Click here", to: Routes.auth_url(PlausibleWeb.Endpoint, :register_from_invitation_form, @invitation.invitation_id)) %> to create your account. The link is valid for 48 hours after this email is sent.<br /><br />Plausible is a lightweight and open-source website analytics tool. We hope you like our simple and ethical approach to tracking website visitors.<br /><br />