Fix authentication on banana example.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 6 May 2011 19:42:57 +0000 (21:42 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 6 May 2011 19:42:57 +0000 (21:42 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
examples/index.php

index 2be0f94..5ce833e 100644 (file)
@@ -31,7 +31,7 @@ class MyBanana extends Banana
 }
 
 // Minimalist login
-if ((@$_GET['action'] == 'rss2') && 
+if ((@$_GET['action'] == 'rss2') ||
     (!isset($_SESSION['banana_email']) || isset($_POST['change_login']) || isset($_POST['valid_change']))) {
     if (isset($_COOKIE['banana_email']) && !isset($_POST['change_login']) && !isset($_POST['valid_change'])) {
         $_SESSION['banana_email'] = $_COOKIE['banana_email'];