]> source.dussan.org Git - nextcloud-server.git/commit
Create only one CSRF token per session
authorLukas Reschke <lukas@statuscode.ch>
Wed, 31 Oct 2012 17:37:59 +0000 (18:37 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Wed, 31 Oct 2012 17:37:59 +0000 (18:37 +0100)
commit7a7f12a0c126522cb067de692af0950d46bf15fc
tree1364f5ec500ead1ac29adde4cc72e5174a7a29ed
parentac784baef689ca5c0f22c8acdce8e13f6d918101
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.
core/ajax/requesttoken.php [deleted file]
core/js/requesttoken.js [deleted file]
core/routes.php
core/templates/layout.base.php
core/templates/layout.guest.php
core/templates/layout.user.php
lib/base.php
lib/template.php
lib/util.php