diff --git a/htdocs/langs/en_US/users.lang b/htdocs/langs/en_US/users.lang index 9bee166b493..c4695d86791 100644 --- a/htdocs/langs/en_US/users.lang +++ b/htdocs/langs/en_US/users.lang @@ -133,3 +133,4 @@ HideAllPerms=Hide all permission rows UserPublicPageDesc=You can enable a virtual card for this user. An url with the user profile and a barcode will be available to allow anybody with a smartphone to scan it and add your contact to its address book. EnablePublicVirtualCard=Enable the user's virtual business card UserEnabledDisabled=User status changed: %s +AlternativeEmailForOAuth2=Alternative Email for OAuth2 login diff --git a/htdocs/user/card.php b/htdocs/user/card.php index a03cbf0d1e1..05826f80dbc 100644 --- a/htdocs/user/card.php +++ b/htdocs/user/card.php @@ -1822,10 +1822,12 @@ if ($action == 'create' || $action == 'adduserldap') { print "\n"; - // Credentials + // Credentials section + print '
'; print '
'; print ''; + print ''; @@ -1846,6 +1848,15 @@ if ($action == 'create' || $action == 'adduserldap') { print ''; print "\n"; + // Alternative email for OAUth2 login + if (!empty($object->email_oauth2) && preg_match('/googleoauth/', $dolibarr_main_authentication)) { + print ''; + print ''; + print "\n"; + } + // Password $valuetoshow = ''; if (preg_match('/ldap/', $dolibarr_main_authentication)) {
'; print img_picto('', 'security', 'class="paddingleft pictofixedwidth"').$langs->trans("Credentials"); print '
'.$langs->trans("AlternativeEmailForOAuth2").''; + print dol_print_email($object->email_oauth2); + print '