Show a hidden property if defined to help debug

This commit is contained in:
Laurent Destailleur 2023-12-05 13:27:25 +01:00
parent 00657ace00
commit 891c0684fb
2 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -1822,10 +1822,12 @@ if ($action == 'create' || $action == 'adduserldap') {
print "</table>\n";
// Credentials
// Credentials section
print '<br>';
print '<div class="div-table-responsive-no-min">';
print '<table class="border tableforfield centpercent">';
print '<tr class="liste_titre"><td class="liste_titre">';
print img_picto('', 'security', 'class="paddingleft pictofixedwidth"').$langs->trans("Credentials");
print '</td>';
@ -1846,6 +1848,15 @@ if ($action == 'create' || $action == 'adduserldap') {
print '</td>';
print "</tr>\n";
// Alternative email for OAUth2 login
if (!empty($object->email_oauth2) && preg_match('/googleoauth/', $dolibarr_main_authentication)) {
print '<tr class="nooddeven"><td class="titlefield">'.$langs->trans("AlternativeEmailForOAuth2").'</td>';
print '<td>';
print dol_print_email($object->email_oauth2);
print '</td>';
print "</tr>\n";
}
// Password
$valuetoshow = '';
if (preg_match('/ldap/', $dolibarr_main_authentication)) {