hof 22.0.0-timeout-warning-beta.6 → 22.0.0-timeout-warning-beta.7
Sign up to get free protection for your applications and to get access to all the features.
package/config/hof-defaults.js
CHANGED
@@ -38,7 +38,7 @@ const defaults = {
|
|
38
38
|
host: process.env.REDIS_HOST || '127.0.0.1'
|
39
39
|
},
|
40
40
|
session: {
|
41
|
-
ttl: process.env.SESSION_TTL ||
|
41
|
+
ttl: process.env.SESSION_TTL || 1800,
|
42
42
|
secret: process.env.SESSION_SECRET || 'changethis',
|
43
43
|
name: process.env.SESSION_NAME || 'hod.sid',
|
44
44
|
sanitiseInputs: false
|
@@ -47,7 +47,7 @@ const defaults = {
|
|
47
47
|
pdfConverter: process.env.PDF_CONVERTER_URL
|
48
48
|
},
|
49
49
|
serveStatic: process.env.SERVE_STATIC_FILES !== 'false',
|
50
|
-
sessionTimeOutWarning: process.env.SESSION_TIMEOUT_WARNING ||
|
50
|
+
sessionTimeOutWarning: process.env.SESSION_TIMEOUT_WARNING || 300
|
51
51
|
};
|
52
52
|
|
53
53
|
module.exports = Object.assign({}, defaults, rateLimits);
|
@@ -13,6 +13,5 @@ data-url-redirect="/session-timeout" class="modal-dialog dialog" role="dialog"
|
|
13
13
|
<div class="modal-dialog__inner__block">
|
14
14
|
<button class="govuk-button dialog-button modal-dialog__inner__button js-dialog-close" id="timeout-continue-button">Stay on this page</button>
|
15
15
|
</div>
|
16
|
-
<a href="/" class="govuk-link dialog-exit-link" role="button">Leave this form</a>
|
17
16
|
</div>
|
18
17
|
</dialog>
|
package/package.json
CHANGED
@@ -415,7 +415,6 @@ window.GOVUK.sessionDialog = {
|
|
415
415
|
let chunk;
|
416
416
|
let ints;
|
417
417
|
let i;
|
418
|
-
let word;
|
419
418
|
let words = 'and';
|
420
419
|
|
421
420
|
if (parseInt(string, 10) === 0) {
|
@@ -470,7 +469,7 @@ window.GOVUK.sessionDialog = {
|
|
470
469
|
}
|
471
470
|
|
472
471
|
/* Add tens word if array item exists */
|
473
|
-
if (
|
472
|
+
if (tens[ints[1]]) {
|
474
473
|
words.push(tens[ints[1]]);
|
475
474
|
}
|
476
475
|
|