mirror of
https://github.com/flarum/core.git
synced 2025-08-01 14:10:37 +02:00
Added CSRF Extender (#2095)
This commit is contained in:
committed by
GitHub
parent
ecdd7a2b49
commit
0d57820b50
@@ -43,7 +43,7 @@ class WithTokenTest extends TestCase
|
||||
'password' => 'too-obscure'
|
||||
],
|
||||
]
|
||||
)->withAttribute('bypassCsrfToken', true)
|
||||
)
|
||||
);
|
||||
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
@@ -75,7 +75,7 @@ class WithTokenTest extends TestCase
|
||||
'password' => 'too-incorrect'
|
||||
],
|
||||
]
|
||||
)->withAttribute('bypassCsrfToken', true)
|
||||
)
|
||||
);
|
||||
|
||||
// HTTP 401 signals an authentication problem
|
||||
|
Reference in New Issue
Block a user