mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-16 10:15:24 -06:00
Remove the deprecated 'is_xhr' parameter of flask.request object.
This commit is contained in:
parent
bf88ff1076
commit
2ae279a382
@ -352,7 +352,7 @@ def pga_unauthorised():
|
||||
else:
|
||||
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.
|
||||
# There are other cases when we return 401. For eg. wrong password
|
||||
# supplied while connecting to server.
|
||||
|
Loading…
Reference in New Issue
Block a user