diff --git a/htdocs/langs/en_US/users.lang b/htdocs/langs/en_US/users.lang
index 8780e7d2c0d..3b3710fee89 100644
--- a/htdocs/langs/en_US/users.lang
+++ b/htdocs/langs/en_US/users.lang
@@ -70,7 +70,7 @@ ExportDataset_user_1=Users and their properties
DomainUser=Domain user %s
Reactivate=Reactivate
CreateInternalUserDesc=This form allows you to create an internal user in your company/organization. To create an external user (customer, vendor etc. ..), use the button 'Create Dolibarr User' from that third-party's contact card.
-InternalExternalDesc=An internal user is a user that is part of your company/organization.
An external user is a customer, vendor or other.
In both cases, permissions defines rights on Dolibarr, also external user can have a different menu manager than internal user (See Home - Setup - Display)
+InternalExternalDesc=An internal user is a user that is part of your company/organization.
An external user is a customer, vendor or other (Creating an external user for a third-party can be done from the contact record of the third-party).
In both cases, permissions defines rights on Dolibarr, also external user can have a different menu manager than internal user (See Home - Setup - Display)
PermissionInheritedFromAGroup=Permission granted because inherited from one of a user's group.
Inherited=Inherited
UserWillBeInternalUser=Created user will be an internal user (because not linked to a particular third party)
diff --git a/htdocs/user/card.php b/htdocs/user/card.php
index 81852b3edc1..384b3e864ba 100644
--- a/htdocs/user/card.php
+++ b/htdocs/user/card.php
@@ -46,6 +46,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/usergroups.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
+require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
if (!empty($conf->ldap->enabled)) require_once DOL_DOCUMENT_ROOT.'/core/class/ldap.class.php';
if (!empty($conf->adherent->enabled)) require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
if (!empty($conf->categorie->enabled)) require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
@@ -858,7 +859,6 @@ if ($action == 'create' || $action == 'adduserldap')
$generated_password = '';
if (empty($ldap_sid)) // ldap_sid is for activedirectory
{
- require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
$generated_password = getRandomPassword(false);
}
$password=(GETPOSTISSET('password')?GETPOST('password'):$generated_password);
@@ -901,19 +901,16 @@ if ($action == 'create' || $action == 'adduserldap')
if (!empty($conf->api->enabled))
{
// API key
- $generated_api_key = '';
- require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
- $generated_password = getRandomPassword(false);
+ //$generated_password = getRandomPassword(false);
print '