소스 검색

Remove default keys for cookies

If no keys are specified, an exception will be thrown in Secury or error.
Visman 3 년 전
부모
커밋
c343f5352f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/Models/Cookie/Model.php

+ 2 - 2
app/Models/Cookie/Model.php

@@ -28,6 +28,7 @@ class Model extends ParentModel
     public function __construct(array $options, Container $container)
     {
         parent::__construct($container);
+
         $options = $options + [
             'prefix'   => '',
             'domain'   => '',
@@ -35,9 +36,8 @@ class Model extends ParentModel
             'secure'   => false,
             'samesite' => 'Lax',
             'time'     => 31536000,
-            'key1'     => 'key1',
-            'key2'     => 'key2',
         ];
+
         $this->setAttrs($options);
         $this->init();
         $this->noSet = true;