forked from External/greenlight
GRN-56: Correctly implemented the account verification flow (#367)
* Correctly implemented the account verification flow * Fixed issues with redirect locations
This commit is contained in:
committed by
Jesus Federico
parent
5521402ee7
commit
c60e25f71c
@ -20,13 +20,8 @@
|
||||
<h3 class="card-title"><%= t("verify.title") %></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<p> Your account has not been verified yet. </p>
|
||||
<% if Rails.configuration.enable_email_verification && params[:user_uid] == current_user.uid %>
|
||||
<%= render "/shared/components/confirm_button" %>
|
||||
<% else %>
|
||||
<%= render "/shared/components/resend_button" %>
|
||||
<% end %>
|
||||
</form>
|
||||
<p><%= t("verify.not_verified") %></p>
|
||||
<%= render "/shared/components/resend_button" %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@ -14,5 +14,5 @@
|
||||
%>
|
||||
|
||||
<div class="btn-list text-right pt-8">
|
||||
<%= button_to t("verify.resend"), resend_path, params: { email_verified: false }, class: "btn btn-primary btn-space" %>
|
||||
<%= button_to t("verify.resend"), resend_email_path, params: { email_verified: false }, class: "btn btn-primary btn-space" %>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user