mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that a valid error message should be displayed for an incorrect user or password.
This commit is contained in:
@@ -314,6 +314,11 @@ def create_app(app_name=None):
|
||||
getattr(config, 'SQLITE_TIMEOUT', 500)
|
||||
)
|
||||
|
||||
# Override USER_DOES_NOT_EXIST and INVALID_PASSWORD messages from flask.
|
||||
app.config['SECURITY_MSG_USER_DOES_NOT_EXIST'] = \
|
||||
app.config['SECURITY_MSG_INVALID_PASSWORD'] = \
|
||||
(gettext("Incorrect username or password."), "error")
|
||||
|
||||
# Create database connection object and mailer
|
||||
db.init_app(app)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user