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 img_picto('', 'security', 'class="paddingleft pictofixedwidth"').$langs->trans("Security"); print ' | '; - print ''; + 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 ' | '; print '
|---|