OpenID: do not show form after logout

This commit is contained in:
Clément Oudot 2010-03-15 10:44:16 +00:00
parent e7d6046168
commit df64e375c2

View File

@ -161,6 +161,16 @@ else {
);
}
# Adapt template for OpenID
if ( $portal->get_module("auth") =~ /openid/i ) {
%templateParams = (
%templateParams,
DISPLAY_RESETPASSWORD => 0,
DISPLAY_FORM => 0,
DISPLAY_OPENID_FORM => 1,
);
}
# Adapt template if external authentication error
# or logout is OK
if ( $portal->{error} == PE_BADCERTIFICATE
@ -172,19 +182,10 @@ else {
%templateParams,
DISPLAY_RESETPASSWORD => 0,
DISPLAY_FORM => 0,
DISPLAY_OPENID_FORM => 0,
PORTAL_URL => $portal->{portal},
);
}
# Adapt template for OpenID
if ( $portal->get_module("auth") =~ /openid/i ) {
%templateParams = (
%templateParams,
DISPLAY_RESETPASSWORD => 0,
DISPLAY_FORM => 0,
DISPLAY_OPENID_FORM => 1,
);
}
}
# HTML template creation