diff --git a/launch.go b/launch.go index df6eef7d..dceb00af 100644 --- a/launch.go +++ b/launch.go @@ -2,6 +2,7 @@ package main // import "github.com/ONSdigital/eq-questionnaire-launcher" import ( "fmt" + "time" "html/template" "log" @@ -155,6 +156,7 @@ func quickLauncherHandler(w http.ResponseWriter, r *http.Request) { urlValues.Add("case_id", caseID.String()) urlValues.Add("response_id", randomNumericString(16)) urlValues.Add("language_code", defaultValues["language_code"]) + urlValues.Add("response_expires_at", time.Now().AddDate(0, 0, 7).Format("2006-01-02T15:04:05+00:00")) token, err := authentication.GenerateTokenFromDefaults(surveyURL, accountServiceURL, AccountServiceLogOutURL, urlValues) if err != "" { diff --git a/templates/launch.html b/templates/launch.html index b294ba1c..0f235636 100644 --- a/templates/launch.html +++ b/templates/launch.html @@ -4,7 +4,7 @@