Packages

A flexible authentication (and more) solution for Phoenix

Current section

Files

Jump to
haytni priv templates email invitable invitation.html.eex
Raw

priv/templates/email/invitable/invitation.html.eex

<p>Hello <%%= @invitation.sent_to %>!</p>
<p><%%= @user.email %> wants you to join <%%= link <%= inspect web_module %>.Endpoint.host(), to: <%= inspect web_module %>.Endpoint.url() %>.</p>
<p>To use the invitation click the link below:</p>
<p><%%= link "Accept the invitation", to: <%= inspect web_module %>.Router.Helpers.haytni_<%= scope %>_registration_url(<%= inspect web_module %>.Endpoint, :new, invitation: @invitation.code, email: @invitation.sent_to) %></p>
<%%= if @config.email_matching_invitation do %>
<p>Note : when registering, your email address has to be <%%= @invitation.sent_to %></p>
<%% end %>