Skip to content

Commit

Permalink
Issue #2301: Correct two error messages for OpenIDConnect.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven committed May 9, 2023
1 parent 74c4188 commit c78304f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Kernel/System/Auth/OpenIDConnect.pm
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ sub Auth {
$CacheObject->Delete(%StateCache);
}
else {
my $ErrorMessage = $StateCSRF eq $CookieCSRF ? 'Response state does not match cookie.' : 'Response state not found in cache.';
my $ErrorMessage = $StateCSRF eq $CookieCSRF ? 'Response state not found in cache.' : 'Response state does not match cookie.';

$Kernel::OM->Get('Kernel::System::Log')->Log(
Priority => 'info',
Expand Down
2 changes: 1 addition & 1 deletion Kernel/System/CustomerAuth/OpenIDConnect.pm
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ sub Auth {
$CacheObject->Delete(%StateCache);
}
else {
my $ErrorMessage = $StateCSRF eq $CookieCSRF ? 'Response state does not match cookie.' : 'Response state not found in cache.';
my $ErrorMessage = $StateCSRF eq $CookieCSRF ? 'Response state not found in cache.' : 'Response state does not match cookie.';

$Kernel::OM->Get('Kernel::System::Log')->Log(
Priority => 'info',
Expand Down

0 comments on commit c78304f

Please sign in to comment.