diff --git a/htdocs/install/mysql/tables/llx_oauth_token.sql b/htdocs/install/mysql/tables/llx_oauth_token.sql index 06f2625c76e..7674f7f3455 100644 --- a/htdocs/install/mysql/tables/llx_oauth_token.sql +++ b/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; diff --git a/htdocs/user/card.php b/htdocs/user/card.php index a78425bb596..fcd6baa2c05 100644 --- a/htdocs/user/card.php +++ b/htdocs/user/card.php @@ -1392,7 +1392,7 @@ if ($action == 'create' || $action == 'adduserldap') { if (!empty($object->ldap_sid) && $object->statut == 0) { print '