Commit a9a2106e authored by Clément OUDOT's avatar Clément OUDOT
Browse files

Add a back URL in removeOther link (#125)

parent a85958f9
......@@ -1406,10 +1406,7 @@ sub removeOther {
),
@{ $self->{otherSessions} }
)
. "<p class=\"removeOther\"><a href=\"$self->{portal}?removeOther=1\" onclick=\"_go=0\">"
. &Lemonldap::NG::Portal::_i18n::msg( PM_REMOVE_OTHER_SESSIONS,
$ENV{HTTP_ACCEPT_LANGUAGE} )
. "</a></p>"
. $self->_mkRemoveOtherLink()
) if ( $self->{notifyOther} and @{ $self->{otherSessions} } );
PE_OK;
}
......@@ -1438,6 +1435,24 @@ sub _mkDateIpArray {
return $tmp;
}
## @method private string _mkRemoveOtherLink()
# Build the removeOther link
# @return removeOther link in HTML code
sub _mkRemoveOtherLink {
my $self = shift;
my $link =
$self->{portal}
. "?removeOther=1&infoFormMethod="
. $self->{infoFormMethod} . "&url="
. encode_base64( $self->{urldc} );
return "<p class=\"removeOther\"><a href=\"$link\" onclick=\"_go=0\">"
. &Lemonldap::NG::Portal::_i18n::msg( PM_REMOVE_OTHER_SESSIONS,
$ENV{HTTP_ACCEPT_LANGUAGE} )
. "</a></p>";
}
##@apmethod int grantSession()
# Check grantSessionRule to allow session creation.
#@return Lemonldap::NG::Portal constant
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment