aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Security/CSRF
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-10-28 11:29:02 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-11-02 20:30:36 +0100
commit2cd92d0abbeffd1817c87522f9b633b14e60181a (patch)
tree0c6dd7a5b543af9cb36385250d80967f45555f41 /lib/private/Security/CSRF
parentf7d681d038fcd600b1716965ccbd22dd02fe19e6 (diff)
downloadnextcloud-server-2cd92d0abbeffd1817c87522f9b633b14e60181a.tar.gz
nextcloud-server-2cd92d0abbeffd1817c87522f9b633b14e60181a.zip
Fix missing update of session, when it was already used.
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Security/CSRF')
-rw-r--r--lib/private/Security/CSRF/TokenStorage/SessionStorage.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/Security/CSRF/TokenStorage/SessionStorage.php b/lib/private/Security/CSRF/TokenStorage/SessionStorage.php
index cf4cdfa5036..9d2e723a6d3 100644
--- a/lib/private/Security/CSRF/TokenStorage/SessionStorage.php
+++ b/lib/private/Security/CSRF/TokenStorage/SessionStorage.php
@@ -41,6 +41,13 @@ class SessionStorage {
}
/**
+ * @param ISession $session
+ */
+ public function setSession(ISession $session) {
+ $this->session = $session;
+ }
+
+ /**
* Returns the current token or throws an exception if none is found.
*
* @return string