Skip to content

Commit

Permalink
Fix failing login when Authorize form is non-English
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Dec 7, 2023
1 parent 1afb496 commit 186ba99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Handlers/AuthorizeHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function handle( Request $request, Response $response ): Response {

$client_id = $request->query( 'client_id', $request->request( 'client_id' ) );
if ( $this->consent_storage->needs_consent( $user->ID, $client_id ) ) {
if ( ! isset( $_POST['authorize'] ) || 'Authorize' !== $_POST['authorize'] ) {
if ( ! isset( $_POST['authorize'] ) || __( 'Authorize', 'openid-connect-server' ) !== $_POST['authorize'] ) {
$response->send();
exit;
}
Expand Down

0 comments on commit 186ba99

Please sign in to comment.