Skip to content

Instantly share code, notes, and snippets.

@ukautz
Created February 11, 2016 16:03
Show Gist options
  • Save ukautz/a633ffc8c2eeea73124c to your computer and use it in GitHub Desktop.
Save ukautz/a633ffc8c2eeea73124c to your computer and use it in GitHub Desktop.
Dirty patch to fix signing of cookies with set `validationKey`
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