From 5b1a1c73d0b70754dadcba7e22e75df8fc66a9b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Tue, 25 Jan 2011 10:57:45 +0000 Subject: [PATCH] Support AuthChoice for reset password feature (#269) --- modules/lemonldap-ng-portal/example/mail.pl | 2 ++ .../example/skins/impact/mail.tpl | 1 + .../example/skins/impact/standardform.tpl | 2 +- .../example/skins/pastel/mail.tpl | 2 ++ .../example/skins/pastel/standardform.tpl | 4 ++-- .../lib/Lemonldap/NG/Portal/AuthChoice.pm | 16 +--------------- .../lib/Lemonldap/NG/Portal/MailReset.pm | 4 +++- .../lib/Lemonldap/NG/Portal/_Choice.pm | 19 ++++++++++++++++++- 8 files changed, 30 insertions(+), 20 deletions(-) diff --git a/modules/lemonldap-ng-portal/example/mail.pl b/modules/lemonldap-ng-portal/example/mail.pl index c28c2673c..957f88960 100755 --- a/modules/lemonldap-ng-portal/example/mail.pl +++ b/modules/lemonldap-ng-portal/example/mail.pl @@ -26,6 +26,8 @@ $template->param( PORTAL_URL => "$portal_url" ); $template->param( SKIN => "$skin" ); $template->param( AUTH_ERROR => $portal->error ); $template->param( AUTH_ERROR_TYPE => $portal->error_type ); +$template->param( CHOICE_PARAM => $portal->{authChoiceParam} ); +$template->param( CHOICE_VALUE => $portal->{_authChoice} ); # Display form the first time $template->param( DISPLAY_FORM => 1 ) diff --git a/modules/lemonldap-ng-portal/example/skins/impact/mail.tpl b/modules/lemonldap-ng-portal/example/skins/impact/mail.tpl index f5adc3959..1893a11aa 100644 --- a/modules/lemonldap-ng-portal/example/skins/impact/mail.tpl +++ b/modules/lemonldap-ng-portal/example/skins/impact/mail.tpl @@ -10,6 +10,7 @@