1db82f235d
- Agents are redirected to the password reset page which confirms the agent as well as sets a new password.
14 lines
No EOL
641 B
Text
14 lines
No EOL
641 B
Text
<p>Welcome, <%= @resource.name %>!</p>
|
|
|
|
<% account_user = @resource&.account_users&.first %>
|
|
<% if account_user&.inviter.present? %>
|
|
<p><%= account_user.inviter.name %>, with <%= account_user.account.name %>, has invited you to try out Chatwoot! </p>
|
|
<% end %>
|
|
|
|
<p>You can confirm your account email through the link below:</p>
|
|
|
|
<% if account_user&.inviter.present? %>
|
|
<p><%= link_to 'Confirm my account', frontend_url('auth/password/edit', reset_password_token: @resource.send(:set_reset_password_token)) %></p>
|
|
<% else %>
|
|
<p><%= link_to 'Confirm my account', frontend_url('auth/confirmation', confirmation_token: @token) %></p>
|
|
<% end %> |