diff --git a/app/controllers/decidim/half_signup/quick_auth_controller.rb b/app/controllers/decidim/half_signup/quick_auth_controller.rb index 87f349d..ef38982 100644 --- a/app/controllers/decidim/half_signup/quick_auth_controller.rb +++ b/app/controllers/decidim/half_signup/quick_auth_controller.rb @@ -61,6 +61,7 @@ def verify @form = form(VerificationCodeForm).instance @verification_code = auth_session["code"] @info = set_contact_info + @mail = auth_session["email"] == @info end def authenticate diff --git a/app/views/decidim/half_signup/quick_auth/verify.html.erb b/app/views/decidim/half_signup/quick_auth/verify.html.erb index 60605e1..066ebc2 100644 --- a/app/views/decidim/half_signup/quick_auth/verify.html.erb +++ b/app/views/decidim/half_signup/quick_auth/verify.html.erb @@ -11,7 +11,11 @@
- <%= t("instruction", scope:"decidim.half_signup.quick_auth", contact_info: @info) %>
+ <% if @mail %>
+ <%= t("instruction_email", scope:"decidim.half_signup.quick_auth", contact_info: @info) %>
+ <% else %>
+ <%= t("instruction", scope:"decidim.half_signup.quick_auth", contact_info: @info) %>
+ <% end %>
<%= auth_link_generator %>