From 58419de458556367fe739a16c69fde7ca9c81539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Mon, 21 Jun 2010 15:20:51 +0000 Subject: [PATCH] Portal: we can have information message for unauthenticated users --- modules/lemonldap-ng-portal/example/index_skin.pl | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/lemonldap-ng-portal/example/index_skin.pl b/modules/lemonldap-ng-portal/example/index_skin.pl index a8f6b539e..95ce42b3d 100755 --- a/modules/lemonldap-ng-portal/example/index_skin.pl +++ b/modules/lemonldap-ng-portal/example/index_skin.pl @@ -139,6 +139,19 @@ elsif ( $portal->{error} == PE_CONFIRM ) { ); } +# 2.3 There is a message to display +elsif ( my $info = $portal->info() ) { + $skinfile = 'info.tpl'; + %templateParams = ( + AUTH_ERROR => $portal->error, + AUTH_ERROR_TYPE => $portal->error_type, + MSG => $info, + SKIN => $skin, + URL => $portal->{urldc}, + HIDDEN_INPUTS => $portal->buildHiddenForm(), + ); +} + # 2.3 Authentication has been refused OR this is the first access else { $skinfile = 'login.tpl';