Created
February 11, 2016 16:03
-
-
Save ukautz/a633ffc8c2eeea73124c to your computer and use it in GitHub Desktop.
Dirty patch to fix signing of cookies with set `validationKey`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/craft/app/etc/web/WebApp.php b/craft/app/etc/web/WebApp.php | |
index 7d68344..504007a 100644 | |
--- a/craft/app/etc/web/WebApp.php | |
+++ b/craft/app/etc/web/WebApp.php | |
@@ -118,6 +118,7 @@ class WebApp extends \CWebApplication | |
if ($validationKey = $this->config->get('validationKey')) | |
{ | |
$this->security->setValidationKey($validationKey); | |
+ $this->getComponent('securityManager')->setValidationKey($validationKey); | |
} | |
// Attach our own custom Logger |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment