Browse Source

# WARNING: head commit changed in the meantime

Clean code
Laurent Destailleur 4 years ago
parent
commit
d04fe12ce9
3 changed files with 12 additions and 12 deletions
  1. 10 10
      htdocs/install/mysql/tables/llx_oauth_token.sql
  2. 1 1
      htdocs/user/card.php
  3. 1 1
      htdocs/user/list.php

+ 10 - 10
htdocs/install/mysql/tables/llx_oauth_token.sql

@@ -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;

+ 1 - 1
htdocs/user/card.php

@@ -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";
 

+ 1 - 1
htdocs/user/list.php

@@ -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"');