# WARNING: head commit changed in the meantime
Clean code
This commit is contained in:
parent
261bc88545
commit
d04fe12ce9
@ -16,15 +16,15 @@
|
||||
-- ============================================================================
|
||||
|
||||
CREATE TABLE llx_oauth_token (
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
service varchar(36), -- 'Google', 'Stripe', 'auth-public-key', ...
|
||||
token text, -- token in serialize() format, of an object StdOAuth2Token of library phpoauth2
|
||||
tokenstring text, -- token in text or json format. Value depends on 'service. For example for an OAUTH service: '{"access_token": "sk_test_cccc", "refresh_token": "rt_aaa", "token_type": "bearer", ..., "scope": "read_write"}
|
||||
fk_soc integer,
|
||||
fk_user integer, -- Id of user in llx_user
|
||||
fk_adherent integer,
|
||||
restricted_ips varchar(200), -- Restrict the authentication mode/token to some IPs
|
||||
datec datetime DEFAULT NULL, -- date creation project
|
||||
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
service varchar(36), -- What king of key or token: 'Google', 'Stripe', 'auth-public-key', ...
|
||||
token text, -- token in serialize() format, of an object StdOAuth2Token of library phpoauth2
|
||||
tokenstring text, -- token in text or json format. Value depends on 'service'. For example for an OAUTH service: '{"access_token": "sk_test_cccc", "refresh_token": "rt_aaa", "token_type": "bearer", ..., "scope": "read_write"}
|
||||
fk_soc integer, -- Id of thirdparty in llx_societe
|
||||
fk_user integer, -- Id of user in llx_user
|
||||
fk_adherent integer, -- Id of member in llx_adherent
|
||||
restricted_ips varchar(200), -- Restrict the authentication mode/token to some IPs
|
||||
datec datetime DEFAULT NULL, -- date creation project
|
||||
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
entity integer DEFAULT 1
|
||||
)ENGINE=innodb;
|
||||
|
||||
@ -1392,7 +1392,7 @@ if ($action == 'create' || $action == 'adduserldap') {
|
||||
if (!empty($object->ldap_sid) && $object->statut == 0) {
|
||||
print '<td class="error">'.$langs->trans("LoginAccountDisableInDolibarr").'</td>';
|
||||
} else {
|
||||
print '<td>'.$object->login.'</td>';
|
||||
print '<td>'.showValueWithClipboardCPButton($object->login).'</td>';
|
||||
}
|
||||
print '</tr>'."\n";
|
||||
|
||||
|
||||
@ -854,7 +854,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
|
||||
print '<tr class="oddeven">';
|
||||
|
||||
if (!empty($arrayfields['u.login']['checked'])) {
|
||||
print '<td class="nowraponall">';
|
||||
print '<td class="nowraponall tdoverflowmax150">';
|
||||
print $li;
|
||||
if (!empty($conf->multicompany->enabled) && $obj->admin && !$obj->entity) {
|
||||
print img_picto($langs->trans("SuperAdministrator"), 'redstar', 'class="valignmiddle paddingleft"');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user