mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
committed by
Akshay Joshi
parent
460fb7ec29
commit
6e42d9113b
@@ -32,7 +32,7 @@ def upgrade():
|
|||||||
auth_source VARCHAR(256) NOT NULL DEFAULT 'internal',
|
auth_source VARCHAR(256) NOT NULL DEFAULT 'internal',
|
||||||
fs_uniquifier NOT NULL UNIQUE,
|
fs_uniquifier NOT NULL UNIQUE,
|
||||||
PRIMARY KEY (id),
|
PRIMARY KEY (id),
|
||||||
UNIQUE (username, auth_source, fs_uniquifier),
|
UNIQUE (username, auth_source),
|
||||||
CHECK (active IN (0, 1))
|
CHECK (active IN (0, 1))
|
||||||
);
|
);
|
||||||
""")
|
""")
|
||||||
|
|||||||
@@ -1134,7 +1134,8 @@ if hasattr(config, 'SECURITY_CHANGEABLE') and config.SECURITY_CHANGEABLE:
|
|||||||
|
|
||||||
if form.validate_on_submit():
|
if form.validate_on_submit():
|
||||||
try:
|
try:
|
||||||
change_user_password(current_user, form.new_password.data)
|
change_user_password(current_user._get_current_object(),
|
||||||
|
form.new_password.data)
|
||||||
except SOCKETErrorException as e:
|
except SOCKETErrorException as e:
|
||||||
# Handle socket errors which are not covered by SMTPExceptions.
|
# Handle socket errors which are not covered by SMTPExceptions.
|
||||||
logging.exception(str(e), exc_info=True)
|
logging.exception(str(e), exc_info=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user