Project

General

Profile

Anomalie #1175

Redirection when not logged in fail

Added by Johan Cwiklinski 12 months ago. Updated 12 months ago.

Status:
Fermé
Priority:
Normal
Category:
Core
Target version:
Start date:
05/01/2018
Due date:
% Done:

100%

Estimated time:
Version utilisée:
Vote:

Description

When you try to open a restricted URL and you're not loggd in; Galette should redirect you to the login page, but currently it displays a blank page.

It looks like the "403" code passed is the cause:

diff --git a/galette/includes/main.inc.php b/galette/includes/main.inc.php
index de440045..e165de47 100644
--- a/galette/includes/main.inc.php
+++ b/galette/includes/main.inc.php
@@ -155,7 +155,6 @@ $authenticate = function ($request, $response, $next) use ($container) {
         );
         $this->flash->addMessage('error_detected', _T("Login required"));
         return $response
-            ->withStatus(403)
             ->withHeader('Location', $this->router->pathFor('slash'));
     } else {
         //check for ACLs

Associated revisions

Revision 49f26f32 (diff)
Added by Johan Cwiklinski 12 months ago

Fix not logged redirection; closes #1175

History

#1

Updated by Johan Cwiklinski 12 months ago

  • Category set to Core
#2

Updated by Johan Cwiklinski 12 months ago

  • Target version set to 0.9.2
#3

Updated by Johan Cwiklinski 12 months ago

  • Status changed from Nouveau to In Progress
  • Target version changed from 0.9.2 to 0.9.1.1
#4

Updated by Johan Cwiklinski 12 months ago

  • Status changed from In Progress to Résolu
  • % Done changed from 0 to 100
#5

Updated by Johan Cwiklinski 12 months ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF