diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthGoogle.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthGoogle.pm index 3ffe3828f..fe46065f7 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthGoogle.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthGoogle.pm @@ -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; } }