From d552938a966be60fa66363bb31e3725e5f0e3856 Mon Sep 17 00:00:00 2001 From: Joseph Bona Date: Mon, 30 Jul 2018 16:46:30 -0400 Subject: [PATCH] get email value from URL param --- app/controllers/invite_controller.rb | 1 + app/views/invite/index.html.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/invite_controller.rb b/app/controllers/invite_controller.rb index 090148b1..0f980406 100644 --- a/app/controllers/invite_controller.rb +++ b/app/controllers/invite_controller.rb @@ -9,6 +9,7 @@ class InviteController < ApplicationController def index if boarding_service.user and boarding_service.password # default + @email = params[:email] else render 'environment_error' end diff --git a/app/views/invite/index.html.erb b/app/views/invite/index.html.erb index 646ce79f..f84b2a13 100644 --- a/app/views/invite/index.html.erb +++ b/app/views/invite/index.html.erb @@ -30,7 +30,7 @@ <%= label_tag(:last_name, t(:last_name_label)) %> <%= text_field_tag :last_name, '', class: "form-control", placeholder: t(:last_name_placeholder) %>
<%= label_tag(:email, t(:email_label), class: "required") %> - <%= email_field_tag :email, '', class: "form-control", placeholder: t(:email_placeholder) %>
+ <%= email_field_tag :email, @email, class: "form-control", placeholder: t(:email_placeholder) %>
<% if ENV["ITC_TOKEN"] %> <% if params[:token] %>