[BUGFIX] Revert "[TASK] Use a 401 header if login is not successful" 00/27900/2
authorMarkus Klein <klein.t3@mfc-linz.at>
Thu, 27 Feb 2014 13:30:52 +0000 (14:30 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Thu, 27 Feb 2014 13:45:36 +0000 (14:45 +0100)
This reverts commit 70ce5402ad9f1a8a98c7014e6ce5af79d9b7a4de.

The 401 header code is used with HTTP based authentication schemes,
based on RFC 2617.

This is not the case here.

Resolves: #55966
Reverts: #51803
Releases: 6.2, 6.1, 6.0, 4.5
Change-Id: Id283069003542ea5b44fdd72b7abda88a2b6762d
Reviewed-on: https://review.typo3.org/27900
Reviewed-by: Markus Klein
Tested-by: Markus Klein
t3lib/class.t3lib_userauth.php

index 4c59819..6c9bf80 100644 (file)
@@ -733,7 +733,6 @@ class t3lib_userAuth {
                        }
 
                } elseif ($activeLogin || count($tempuserArr)) {
-                       t3lib_utility_Http::setResponseCode(t3lib_utility_Http::HTTP_STATUS_401);
                        $this->loginFailure = TRUE;
 
                        if ($this->writeDevLog && !count($tempuserArr) && $activeLogin) {