diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 5585ff700e2..8ec3a949831 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -1963,7 +1963,7 @@ ApiDesc=By enabling this module, Dolibarr become a REST server to provide miscel ApiProductionMode=Enable production mode (this will activate use of a cache for services management) ApiExporerIs=You can explore and test the APIs at URL OnlyActiveElementsAreExposed=Only elements from enabled modules are exposed -ApiKey=Key for API +ApiKey=Token for API WarningAPIExplorerDisabled=The API explorer has been disabled. API explorer is not required to provide API services. It is a tool for developer to find/test REST APIs. If you need this tool, go into setup of module API REST to activate it. ##### Bank ##### BankSetupModule=Bank module setup @@ -2707,3 +2707,5 @@ MainSecurityPolicySucesfullyRemoved=Content Security Policy successfully removed MainErrorRemovingSecurityPolicy=An error occurred when trying to remove a Content Security Policy MainSecurityPolicySucesfullyAdded=Content Security Policy successfully added MainErrorAddingSecurityPolicy=An error occurred when trying to add a Content Security Policy +SecurityForConnection=Credentials for connexion +AddCredential=Add a credential diff --git a/htdocs/user/card.php b/htdocs/user/card.php index 26f0662289d..35310941ae2 100644 --- a/htdocs/user/card.php +++ b/htdocs/user/card.php @@ -1969,8 +1969,9 @@ if ($action == 'create' || $action == 'adduserldap') { print '
| '; - print img_picto('', 'security', 'class="paddingleft pictofixedwidth"').$langs->trans("Security"); + print img_picto('', 'security', 'class="paddingleft pictofixedwidth"').$langs->trans("SecurityForConnection"); print ' | '; print ''; if (getDolGlobalString('MAIN_SECURITY_ALLOW_TOTP') && $permissiontoeditpasswordandsee) { @@ -1994,16 +1995,7 @@ if ($action == 'create' || $action == 'adduserldap') { print ''; print " |
|---|---|
| '.$langs->trans("AlternativeEmailForOAuth2").' | '; - print ''; - print dol_print_email($object->email_oauth2); - print ' | '; - print "
| '.$langs->trans("OAUTH_ID"); + print ' '.ucfirst($nameofservice).' '; + print ' | '; + print ''; + $constoauthlogin = 'OAUTH_'.strtoupper($nameofservice).'-Login_ID'; + if (getDolGlobalString($constoauthlogin)) { + print getDolGlobalString($constoauthlogin); + } + print ' | '; + print "
| '.$langs->trans("AlternativeEmailForOAuth2").' | '; + print ''; + print dol_print_email($object->email_oauth2); + print ' | '; + print "
| '.$langs->trans("ApiKey").' | '; print ''; @@ -2067,13 +2073,12 @@ if ($action == 'create' || $action == 'adduserldap') { print showValueWithClipboardCPButton($object->api_key, 1, $langs->transnoentities("Hidden")); // TODO Add an option to also reveal the hash, not only copy paste print ''; } - if (getDolGlobalString('API_ENABLE_COUNT_CALLS')) { print ' '.getDolUserInt('API_COUNT_CALL').''; } - print ' |
| '.$langs->trans("LastConnexion").' | '; print ''; @@ -2086,6 +2091,7 @@ if ($action == 'create' || $action == 'adduserldap') { print ' | '; print "