diff --git a/lemonldap-ng-portal/example/skins/pastel/googleform.tpl b/lemonldap-ng-portal/example/skins/pastel/googleform.tpl index 9aeff0199..ad6cd1017 100644 --- a/lemonldap-ng-portal/example/skins/pastel/googleform.tpl +++ b/lemonldap-ng-portal/example/skins/pastel/googleform.tpl @@ -17,7 +17,7 @@ /common/cancel.png" alt="" /> - diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthGoogle.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthGoogle.pm index 729d32ba3..9f99bcbba 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthGoogle.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/AuthGoogle.pm @@ -158,7 +158,7 @@ sub authForce { ## @method string getDisplayType # @return display type sub getDisplayType { - return "openidform"; + return "googleform"; } 1; diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Display.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Display.pm index 1ade89718..b68293b69 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Display.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Display.pm @@ -189,6 +189,8 @@ sub display { ); } + # TODO: Manage Google errors + # 2.5 Authentication has been refused OR this is the first access else { $skinfile = 'login.tpl'; @@ -235,6 +237,7 @@ sub display { REQUIRE_OLDPASSWORD => 1, # Old password is required to check user credentials DISPLAY_FORM => 0, + DISPLAY_GOOGLE_FORM => 0, DISPLAY_OPENID_FORM => 0, DISPLAY_YUBIKEY_FORM => 0, DISPLAY_PASSWORD => 1, @@ -260,6 +263,7 @@ sub display { %templateParams, DISPLAY_RESETPASSWORD => 0, DISPLAY_FORM => 0, + DISPLAY_GOOGLE_FORM => 0, DISPLAY_OPENID_FORM => 0, DISPLAY_YUBIKEY_FORM => 0, AUTH_LOOP => [], @@ -280,6 +284,7 @@ sub display { CHOICE_PARAM => $self->{authChoiceParam}, CHOICE_VALUE => $self->{_authChoice}, DISPLAY_FORM => 0, + DISPLAY_GOOGLE_FORM => 0, DISPLAY_OPENID_FORM => 0, DISPLAY_YUBIKEY_FORM => 0, ); @@ -295,6 +300,7 @@ sub display { %templateParams = ( %templateParams, DISPLAY_FORM => $displayType eq "standardform" ? 1 : 0, + DISPLAY_GOOGLE_FORM => $displayType eq "googleform" ? 1 : 0, DISPLAY_OPENID_FORM => $displayType eq "openidform" ? 1 : 0, DISPLAY_YUBIKEY_FORM => $displayType eq "yubikeyform" ? 1