Fix an issue where the browser window stuck on spinning with an Oauth user without email. #6874

This commit is contained in:
Khushboo Vashi 2023-10-20 11:16:35 +05:30
parent 3416184236
commit c07c153f15
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,29 @@
***********
Version 7.9
***********
Release date: 2023-11-23
This release contains a number of bug fixes and new features since the release of pgAdmin 4 v7.8.
Supported Database Servers
**************************
**PostgreSQL**: 11, 12, 13, 14, 15, and 16
**EDB Advanced Server**: 11, 12, 13, 14 and 15
Bundled PostgreSQL Utilities
****************************
**psql**, **pg_dump**, **pg_dumpall**, **pg_restore**: 16.0
New features
************
Housekeeping
************
Bug fixes
*********
| `Issue #6874 <https://github.com/pgadmin-org/pgadmin4/issues/6874>`_ - Fix an issue where the browser window stuck on spinning with an Oauth user without email.

View File

@ -103,7 +103,8 @@ def current_user_info():
is_admin='true' if current_user.has_role(
"Administrator") else 'false',
user_id=current_user.id,
email=current_user.email.replace("'","\\'"),
email=current_user.email.replace("'","\\'") if current_user.email
else current_user.email,
name=(
current_user.username.split('@')[0].replace("'","\\'") if
config.SERVER_MODE is True