Fixed user password-related issues.

refs #6225
This commit is contained in:
Aditya Toshniwal
2021-06-10 22:56:38 +05:30
committed by Akshay Joshi
parent 460fb7ec29
commit 6e42d9113b
2 changed files with 3 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ def upgrade():
auth_source VARCHAR(256) NOT NULL DEFAULT 'internal',
fs_uniquifier NOT NULL UNIQUE,
PRIMARY KEY (id),
UNIQUE (username, auth_source, fs_uniquifier),
UNIQUE (username, auth_source),
CHECK (active IN (0, 1))
);
""")