mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Use libsodium to encrypt all data, related to OAuth2
This commit is contained in:
@@ -18,7 +18,7 @@ class OauthSteps extends FunctionalTester {
|
||||
]), ['accept' => true]);
|
||||
$this->canSeeResponseJsonMatchesJsonPath('$.redirectUri');
|
||||
[$redirectUri] = $this->grabDataFromResponseByJsonPath('$.redirectUri');
|
||||
preg_match('/code=([\w-]+)/', $redirectUri, $matches);
|
||||
preg_match('/code=([^&$]+)/', $redirectUri, $matches);
|
||||
|
||||
return $matches[1];
|
||||
}
|
||||
|
Reference in New Issue
Block a user