OpenID: do not show form after logout
This commit is contained in:
parent
e7d6046168
commit
df64e375c2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user