Browse Source

Debug Oauth

Laurent Destailleur 9 years ago
parent
commit
2395099d0f
2 changed files with 7 additions and 1 deletions
  1. 6 1
      htdocs/admin/oauth.php
  2. 1 0
      htdocs/langs/en_US/oauth.lang

+ 6 - 1
htdocs/admin/oauth.php

@@ -138,6 +138,7 @@ $list = array (
                 'OAUTH_GOOGLE_NAME',
                 'OAUTH_GOOGLE_ID',
                 'OAUTH_GOOGLE_SECRET',
+                'OAUTH_GOOGLE_DESC',
             ),
             array(
                 'OAUTH_HUBIC_NAME',
@@ -323,7 +324,11 @@ foreach ($list as $key)
     print '<tr class="liste_titre">';
     // Api Name
     $label = $langs->trans($key[0]); 
-    print '<td colspan="2">'.$label.'</td></tr>';
+    print '<td>'.$label.'</td>';
+    print '<td>';
+    if (! empty($key[3])) print $langs->trans($key[3]);
+    print '</td>';
+    print '</tr>';
 
     if ($supported)
     {

+ 1 - 0
htdocs/langs/en_US/oauth.lang

@@ -12,3 +12,4 @@ ListOfSupportedOauthProviders=Enter here credential provided by your OAuth2 prov
 OAUTH_GOOGLE_NAME=Api Google
 OAUTH_GOOGLE_ID=Api Google Id
 OAUTH_GOOGLE_SECRET=Api Google Secret
+OAUTH_GOOGLE_DESC=Go on <a href="https://console.developers.google.com/" target="_blank">this page</a> then Credentials to create Oauth credentials