mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Remove the deprecated 'is_xhr' parameter of flask.request object.
This commit is contained in:
@@ -352,7 +352,7 @@ def pga_unauthorised():
|
|||||||
else:
|
else:
|
||||||
login_message = lm.login_message
|
login_message = lm.login_message
|
||||||
|
|
||||||
if not lm.login_view or request.is_xhr:
|
if not lm.login_view:
|
||||||
# Only 401 is not enough to distinguish pgAdmin login is required.
|
# Only 401 is not enough to distinguish pgAdmin login is required.
|
||||||
# There are other cases when we return 401. For eg. wrong password
|
# There are other cases when we return 401. For eg. wrong password
|
||||||
# supplied while connecting to server.
|
# supplied while connecting to server.
|
||||||
|
|||||||
Reference in New Issue
Block a user