2019-10-14 08:54:58 +00:00
<p>Welcome, <%= @resource.name %>!</p>
2021-06-08 17:15:01 +00:00
<% account_user = @resource&.account_users&.first %>
2021-12-16 14:02:49 +00:00
<% if account_user&.inviter.present? && @resource.unconfirmed_email.blank? %>
2022-03-08 03:52:57 +00:00
<p><%= account_user.inviter.name %>, with <%= account_user.account.name %>, has invited you to try out <%= global_config['BRAND_NAME'] || 'Chatwoot' %>! </p>
2019-10-14 08:54:58 +00:00
<% end %>
2019-08-17 12:35:50 +00:00
2022-08-18 07:42:43 +00:00
<% if @resource.confirmed? %>
<p>You can login to your account through the link below:</p>
<% else %>
2019-08-17 12:35:50 +00:00
<p>You can confirm your account email through the link below:</p>
2022-08-18 07:42:43 +00:00
<% end %>
2019-08-17 12:35:50 +00:00
2022-08-18 07:42:43 +00:00
<% if @resource.confirmed? %>
<p><%= link_to 'Login to my account', frontend_url('auth/sign_in') %></p>
<% elsif account_user&.inviter.present? && @resource.unconfirmed_email.blank? %>
2021-12-09 05:41:46 +00:00
<p><%= link_to 'Confirm my account', frontend_url('auth/password/edit', reset_password_token: @resource.send(:set_reset_password_token)) %></p>
<% else %>
2019-08-25 14:29:28 +00:00
<p><%= link_to 'Confirm my account', frontend_url('auth/confirmation', confirmation_token: @token) %></p>
2022-03-08 03:52:57 +00:00
<% end %>