diff options
author | Joas Schilling <coding@schilljs.com> | 2021-04-30 23:08:57 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-05-12 08:02:53 +0200 |
commit | a2d5d2d613712bc50c4440d0986b8bc310a6a03f (patch) | |
tree | 063e2787b7575b3c49e2f376f9fedc2fc9666cac /index.php | |
parent | 0599a8060ceb6518bb3981c88fc14f215d80f562 (diff) | |
download | nextcloud-server-a2d5d2d613712bc50c4440d0986b8bc310a6a03f.tar.gz nextcloud-server-a2d5d2d613712bc50c4440d0986b8bc310a6a03f.zip |
Reply with UNAUTHORIZED like on APIs when login exception was thrown
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php index 9ea511c7f00..6bdaf9d477d 100644 --- a/index.php +++ b/index.php @@ -55,7 +55,7 @@ try { OC_Template::printExceptionErrorPage($ex, 500); } } catch (\OC\User\LoginException $ex) { - OC_Template::printErrorPage($ex->getMessage(), $ex->getMessage(), 403); + OC_Template::printErrorPage($ex->getMessage(), $ex->getMessage(), 401); } catch (Exception $ex) { \OC::$server->getLogger()->logException($ex, ['app' => 'index']); |