diff options
author | Mickael Remond <mremond@process-one.net> | 2016-03-29 13:05:22 +0200 |
---|---|---|
committer | Mickael Remond <mremond@process-one.net> | 2016-03-29 13:06:13 +0200 |
commit | 3b2d0fd24a0203ecf72da19e06d4740a8d33b46e (patch) | |
tree | fb00310ec5ce8bc86f3b2c27b32d104efc72c389 /sql/pg.sql | |
parent | Fix commands access check. (diff) | |
parent | Pass noauth when auth isn't provided, reverts a1129dc (processone/ejabberd-co... (diff) |
Fix commands access check.
Fixes ECS-20
Diffstat (limited to 'sql/pg.sql')
-rw-r--r-- | sql/pg.sql | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -19,10 +19,13 @@ CREATE TABLE users ( username text PRIMARY KEY, "password" text NOT NULL, + serverkey text NOT NULL DEFAULT '', + salt text NOT NULL DEFAULT '', + iterationcount integer NOT NULL DEFAULT 0, created_at TIMESTAMP NOT NULL DEFAULT now() ); --- To support SCRAM auth: +-- Add support for SCRAM auth to a database created before ejabberd 16.03: -- ALTER TABLE users ADD COLUMN serverkey text NOT NULL DEFAULT ''; -- ALTER TABLE users ADD COLUMN salt text NOT NULL DEFAULT ''; -- ALTER TABLE users ADD COLUMN iterationcount integer NOT NULL DEFAULT 0; |