diff --git a/lib/Controller/LoginController.php b/lib/Controller/LoginController.php index 835236ae..9a70f01f 100644 --- a/lib/Controller/LoginController.php +++ b/lib/Controller/LoginController.php @@ -231,7 +231,7 @@ public function login(int $providerId, string $redirectUrl = null) { $this->session->set(self::NONCE, $nonce); // PKCE code_challenge see https://datatracker.ietf.org/doc/html/rfc7636 - $code_verifier = $this->random->generage(128, ISecureRandom::CHAR_DIGITS . ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_LOWER); + $code_verifier = $this->random->generate(128, ISecureRandom::CHAR_DIGITS . ISecureRandom::CHAR_UPPER . ISecureRandom::CHAR_LOWER); $this->session->set(self::CODE_VERIFIER, $code_verifier); $this->session->set(self::PROVIDERID, $providerId);