diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-10-31 18:37:59 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-10-31 18:37:59 +0100 |
commit | 7a7f12a0c126522cb067de692af0950d46bf15fc (patch) | |
tree | 1364f5ec500ead1ac29adde4cc72e5174a7a29ed /core/templates/layout.guest.php | |
parent | ac784baef689ca5c0f22c8acdce8e13f6d918101 (diff) | |
download | nextcloud-server-7a7f12a0c126522cb067de692af0950d46bf15fc.tar.gz nextcloud-server-7a7f12a0c126522cb067de692af0950d46bf15fc.zip |
Create only one CSRF token per session
Before, the CSRF token expired every hour. We had a script in place
which should refresh the token but this don't worked in every case.
(Laptop sleeping etc.)
With this commit, the token will only get once created for every
session so that the "Token expired" warning shouldn't appear.
Diffstat (limited to 'core/templates/layout.guest.php')
-rw-r--r-- | core/templates/layout.guest.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php index e6468cdcfb4..2eaa517b324 100644 --- a/core/templates/layout.guest.php +++ b/core/templates/layout.guest.php @@ -11,7 +11,6 @@ var oc_webroot = '<?php echo OC::$WEBROOT; ?>'; var oc_appswebroots = <?php echo $_['apps_paths'] ?>; var oc_requesttoken = '<?php echo $_['requesttoken']; ?>'; - var oc_requestlifespan = '<?php echo $_['requestlifespan']; ?>'; var datepickerFormatDate = <?php echo json_encode($l->l('jsdate', 'jsdate')) ?>; var dayNames = <?php echo json_encode(array((string)$l->t('Sunday'), (string)$l->t('Monday'), (string)$l->t('Tuesday'), (string)$l->t('Wednesday'), (string)$l->t('Thursday'), (string)$l->t('Friday'), (string)$l->t('Saturday'))) ?>; var monthNames = <?php echo json_encode(array((string)$l->t('January'), (string)$l->t('February'), (string)$l->t('March'), (string)$l->t('April'), (string)$l->t('May'), (string)$l->t('June'), (string)$l->t('July'), (string)$l->t('August'), (string)$l->t('September'), (string)$l->t('October'), (string)$l->t('November'), (string)$l->t('December'))) ?>; |