Skip to content

Commit

Permalink
401-Header nur über Ajax senden
Browse files Browse the repository at this point in the history
fixes #742
  • Loading branch information
gharlan committed Jun 22, 2016
1 parent 0726c47 commit 92cbfc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion redaxo/src/core/backend.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@

$rex_user_loginmessage = '';
if ($loginCheck !== true) {
rex_response::setStatus(rex_response::HTTP_UNAUTHORIZED);
if (rex_request::isXmlHttpRequest()) {
rex_response::setStatus(rex_response::HTTP_UNAUTHORIZED);
}

// login failed
$rex_user_loginmessage = $login->getMessage();
Expand Down

0 comments on commit 92cbfc3

Please sign in to comment.