Chore: Improve confirmation flow for agents (#3519)

- Agents are redirected to the password reset page which confirms the agent as well as sets a new password.
This commit is contained in:
Sojan Jose
2021-12-09 11:11:46 +05:30
committed by GitHub
parent 9306b725d8
commit 1db82f235d
3 changed files with 23 additions and 7 deletions

View File

@@ -7,4 +7,8 @@
<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 %>