pgadmin-org / pgadmin4

pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.
https://www.pgadmin.org
Other
2.49k stars 650 forks source link

window.renderSecurityPage is not a function #7785

Open FatTigerWang opened 2 months ago

FatTigerWang commented 2 months ago

Please note that security bugs or issues should be reported to security@pgadmin.org.

Describe the bug

Unable to log in, keeps showing loading

To Reproduce

Steps to reproduce the behavior:

  1. Jump to the login page
  2. F12 open chrome dev tools
  3. It keeps showing loading and the page cannot be displayed because the console shows an error

Expected behavior

show login page, no errors

Error message

window.renderSecurityPage is not a function image

image

image

image

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context

I guess the error is caused by the loading order. When executing window.renderSecurityPage, security.pages js has not been loaded yet. Not sure why require does not work. If I debug, security.pages will have time to load and window.renderSecurityPage executes correctly.

adityatoshniwal commented 2 months ago

@FatTigerWang I think some of the network call failed to get the required JS files. Please check the network tab if everything is success.

FatTigerWang commented 2 months ago

@FatTigerWang I think some of the network call failed to get the required JS files. Please check the network tab if everything is success.

I updated the image and can see that JS can be loaded