1
0
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:
Alexander Skvortsov
2020-04-03 15:32:18 -04:00
committed by GitHub
parent ecdd7a2b49
commit 0d57820b50
6 changed files with 193 additions and 2 deletions

View File

@@ -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