Do not render PA contact on self-hosted instances

feat/2fa-final-bigger-refactor
Adrian Gruntkowski 3 years ago
parent 3d9b5ac60d
commit c65490c1fd

@ -17,8 +17,12 @@
>
Use recovery code
</a>
<br /> Lost your recovery codes?
<a href="/contact" class="underline text-indigo-600">Contact us</a>
<%= if not @is_selfhost do %>
<br /> Lost your recovery codes?
<a href="https://plausible.io/contact" class="underline text-indigo-600">
Contact us
</a>
<% end %>
</p>
</div>
</div>

@ -32,8 +32,12 @@
<a href={Routes.auth_path(@conn, :verify_2fa)} class="underline text-indigo-600">
Enter verification code
</a>
<br /> Lost your recovery codes?
<a href="/contact" class="underline text-indigo-600">Contact us</a>
<%= if not @is_selfhost do %>
<br /> Lost your recovery codes?
<a href="https://plausible.io/contact" class="underline text-indigo-600">
Contact us
</a>
<% end %>
</p>
</div>
</div>

Loading…
Cancel
Save