Complete tooltip
This commit is contained in:
parent
f3d35b5a19
commit
98d2db440a
@ -70,7 +70,7 @@ ExportDataset_user_1=Users and their properties
|
|||||||
DomainUser=Domain user %s
|
DomainUser=Domain user %s
|
||||||
Reactivate=Reactivate
|
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.
|
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 <b>internal</b> user is a user that is part of your company/organization.<br>An <b>external</b> user is a customer, vendor or other.<br><br>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 <b>internal</b> user is a user that is part of your company/organization.<br>An <b>external</b> 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).<br><br>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.
|
PermissionInheritedFromAGroup=Permission granted because inherited from one of a user's group.
|
||||||
Inherited=Inherited
|
Inherited=Inherited
|
||||||
UserWillBeInternalUser=Created user will be an internal user (because not linked to a particular third party)
|
UserWillBeInternalUser=Created user will be an internal user (because not linked to a particular third party)
|
||||||
|
|||||||
@ -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/extrafields.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.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/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->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->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';
|
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 = '';
|
$generated_password = '';
|
||||||
if (empty($ldap_sid)) // ldap_sid is for activedirectory
|
if (empty($ldap_sid)) // ldap_sid is for activedirectory
|
||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
|
||||||
$generated_password = getRandomPassword(false);
|
$generated_password = getRandomPassword(false);
|
||||||
}
|
}
|
||||||
$password=(GETPOSTISSET('password')?GETPOST('password'):$generated_password);
|
$password=(GETPOSTISSET('password')?GETPOST('password'):$generated_password);
|
||||||
@ -901,19 +901,16 @@ if ($action == 'create' || $action == 'adduserldap')
|
|||||||
if (!empty($conf->api->enabled))
|
if (!empty($conf->api->enabled))
|
||||||
{
|
{
|
||||||
// API key
|
// API key
|
||||||
$generated_api_key = '';
|
//$generated_password = getRandomPassword(false);
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
|
||||||
$generated_password = getRandomPassword(false);
|
|
||||||
print '<tr><td>'.$langs->trans("ApiKey").'</td>';
|
print '<tr><td>'.$langs->trans("ApiKey").'</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
print '<input size="30" maxsize="32" type="text" id="api_key" name="api_key" value="'.$api_key.'" autocomplete="off">';
|
print '<input size="30" maxsize="32" type="text" id="api_key" name="api_key" value="'.GETPOST('api_key', 'alphanohtml').'" autocomplete="off">';
|
||||||
if (!empty($conf->use_javascript_ajax))
|
if (!empty($conf->use_javascript_ajax))
|
||||||
print ' '.img_picto($langs->trans('Generate'), 'refresh', 'id="generate_api_key" class="linkobject"');
|
print ' '.img_picto($langs->trans('Generate'), 'refresh', 'id="generate_api_key" class="linkobject"');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/security2.lib.php';
|
|
||||||
// PARTIAL WORKAROUND
|
// PARTIAL WORKAROUND
|
||||||
$generated_fake_api_key = getRandomPassword(false);
|
$generated_fake_api_key = getRandomPassword(false);
|
||||||
print '<input type="hidden" name="api_key" value="'.$generated_fake_api_key.'">';
|
print '<input type="hidden" name="api_key" value="'.$generated_fake_api_key.'">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user