summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@kde.org>2012-04-26 23:17:46 +0200
committerFrank Karlitschek <karlitschek@kde.org>2012-04-26 23:17:46 +0200
commit74b5e22a684c3095dbd48b56da1a10d955c20305 (patch)
treef4b350ac022cfe4e8935b7910470dcfbbd7a0ec5 /lib
parentd96e962fc1f5df7efec5266d34735ebcdc20b056 (diff)
downloadnextcloud-server-74b5e22a684c3095dbd48b56da1a10d955c20305.tar.gz
nextcloud-server-74b5e22a684c3095dbd48b56da1a10d955c20305.zip
some more csrf fixes
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index ec70fd91cb5..29d0691a63d 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -253,6 +253,9 @@ class OC_Util {
} else {
$parameters["username"] = '';
}
+ $sectoken=rand(1000000,9999999);
+ $_SESSION['sectoken']=$sectoken;
+ $parameters["sectoken"] = $sectoken;
OC_Template::printGuestPage("", "login", $parameters);
}