mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
NEW add fields to prepare to add the bearer authentication for API
This commit is contained in:
parent
4a1199a00e
commit
9e0f75f9ca
|
|
@ -131,3 +131,7 @@ ALTER TABLE llx_categorie_supplier_invoice ADD INDEX idx_categorie_supplier_invo
|
|||
|
||||
ALTER TABLE llx_categorie_supplier_invoice ADD CONSTRAINT fk_categorie_supplier_invoice_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid);
|
||||
ALTER TABLE llx_categorie_supplier_invoice ADD CONSTRAINT fk_categorie_supplier_invoice_fk_supplier_invoice_rowid FOREIGN KEY (fk_supplier_invoice) REFERENCES llx_facture_fourn (rowid);
|
||||
|
||||
ALTER TABLE llx_user ADD COLUMN api_pass varchar(128) AFTER api_key;
|
||||
ALTER TABLE llx_user ADD COLUMN api_token varchar(128) AFTER api_pass;
|
||||
ALTER TABLE llx_user ADD COLUMN api_renewal_token varchar(128) AFTER api_token;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
-- ============================================================================
|
||||
-- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2006-2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
-- Copyright (C) 2007-2013 Regis Houssin <regis.houssin@inodbox.com>
|
||||
-- Copyright (C) 2007-2025 Regis Houssin <regis.houssin@inodbox.com>
|
||||
-- Copyright (C) 2024 Alexandre Spangaro <alexandre@inovea-conseil.com>
|
||||
--
|
||||
-- This program is free software; you can redistribute it and/or modify
|
||||
|
|
@ -41,7 +41,10 @@ create table llx_user
|
|||
pass varchar(128),
|
||||
pass_crypted varchar(128),
|
||||
pass_temp varchar(128), -- temporary password when asked for forget password or 'hashtoallowreset:YYYMMDDHHMMSS' (where date is max date of validity)
|
||||
api_key varchar(128), -- key to use REST API by this user
|
||||
api_key varchar(128), -- API key to use with REST API by this user
|
||||
api_pass varchar(128), -- API password to use with REST API by this user
|
||||
api_token varchar(128), -- TTL token to use with REST API by this user
|
||||
api_renewal_token varchar(128), -- renewal token for refresh the TTL token to use with REST API by this user
|
||||
gender varchar(10),
|
||||
civility varchar(6),
|
||||
lastname varchar(50),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user