Force redirection to avoid displaying OpenID datas

This commit is contained in:
Xavier Guimard 2013-10-02 19:45:33 +00:00
parent 8869b04cde
commit ea6f91e656

View File

@ -145,7 +145,7 @@ sub checkGoogleSession {
# in persistent session (so that it's defined)
if ( $self->{_AXNS} ) {
$self->lmLog(
"$attr required attribute is missing in Google response, storing ''",
"$v required attribute is missing in Google response, storing ''",
'info'
);
$h->{$v} = $gs->{$v} = '';
@ -155,7 +155,7 @@ sub checkGoogleSession {
# changed and this value was never asked
else {
$self->lmLog(
"$attr required attribute is missing in persistent session, let's ask it",
"$v required attribute is missing in persistent session, let's ask it",
'info'
);
return 0;
@ -265,6 +265,10 @@ sub extractFormInfo {
# 1.3 Datas are recovered, user is authenticated
else {
$self->lmLog( 'Good Google authentication', 'debug' );
# Force redirection to avoid displaying OpenID datas
$self->{mustRedirect} = 1;
return PE_OK;
}
}