From 6cf4174b226d4f45eef53d4bc4a255b3c93fe6d2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 16 Aug 2025 04:21:40 +0200 Subject: [PATCH] Prepare to allow management of different credentials --- htdocs/user/card.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/htdocs/user/card.php b/htdocs/user/card.php index d45b26f5a9e..26f0662289d 100644 --- a/htdocs/user/card.php +++ b/htdocs/user/card.php @@ -1965,13 +1965,19 @@ if ($action == 'create' || $action == 'adduserldap') { // Credentials section print '
'; + print ''."\n"; print '
'; print ''; print ''; - print ''; + print ''; print ''; // Date login validity
'; print img_picto('', 'security', 'class="paddingleft pictofixedwidth"').$langs->trans("Security"); print ''; + if (getDolGlobalString('MAIN_SECURITY_ALLOW_TOTP') && $permissiontoeditpasswordandsee) { + $s = ''; + print dolButtonToOpenUrlInDialogPopup('openpopuptoaddcredential', $langs->trans("AddCredential"), $s, '/user/addcredential.php?userid='.$object->id.'&token='.newToken()); + } + print '