Skip to content

Commit 18695de

Browse files
authored
Merge pull request #15 from LaswitchTech/dev
Publishing v0.0.16
2 parents a813a9b + 4356c3f commit 18695de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.0.15
1+
v0.0.16

src/CSRF.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function __construct()
6262

6363
// Check if the method used should be validated
6464
if(!defined('STDIN') && in_array($this->Request->getMethod(), ['POST', 'PUT', 'PATCH', 'DELETE'])){
65-
if(in_array(get_class($this->Auth),["Module","LaswitchTech\Core\Module"]) || !$this->Auth->isInstalled() || !$this->Auth->isLoaded() || !$this->Auth->isAuthenticated() || !in_array($this->Auth->method(),["bearer","basic"])){
65+
if(in_array(get_class($this->Auth),["Module","LaswitchTech\Core\Module"]) || !$this->Auth->isLoaded() || !$this->Auth->isAuthenticated() || !in_array($this->Auth->method(),["bearer","basic"])){
6666
if(!$this->validate($this->Request->getParams('POST', $this->Field) ?? null)){
6767
$this->Output->print(
6868
'Invalid CSRF Token',

0 commit comments

Comments
 (0)