From a06066b920f5d59105dc285cf3f0f0f77da8cd80 Mon Sep 17 00:00:00 2001 From: xmo-odoo Date: Thu, 24 May 2018 14:43:31 +0200 Subject: [IMP] merge auth_crypt into base * store hashed passwords in the `password` column but gate it behind a computed field * make the password field essentially write-only (SQL aside) * add a "plaintext" hash type so it's possible to set the password in SQL directly & be able to login & have it automatically updated Task 34211 --- odoo/addons/base/data/base_data.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odoo/addons/base/data/base_data.sql') diff --git a/odoo/addons/base/data/base_data.sql b/odoo/addons/base/data/base_data.sql index 30d6cc6cd89..67d2fb9ada5 100644 --- a/odoo/addons/base/data/base_data.sql +++ b/odoo/addons/base/data/base_data.sql @@ -16,7 +16,7 @@ CREATE TABLE res_users ( id serial NOT NULL, active boolean default True, login varchar(64) NOT NULL UNIQUE, - password varchar(64) default null, + password varchar default null, -- No FK references below, will be added later by ORM -- (when the destination rows exist) company_id integer, -- references res_company, -- cgit v1.2.3