SamuelTallet / MongoDB-PHP-GUI

Open-source graphical interface for MongoDB database. Written in PHP, JavaScript, HTML & CSS.
142 stars 33 forks source link

Display connection errors on login page #21

Open ririko5834 opened 3 years ago

ririko5834 commented 3 years ago

I think that when you type MongoDB login details it should try to connect to MongoDB. If the connection was not successful, display an error on the login page and don't let the user go to the dashboard.

ririko5834 commented 3 years ago

Now you can fill in fake not working MongoDB data, and it will give you access to the dashboard.

Like this: image

When you click on login, you can access dashboard image When you go to visualize database, an error is displayed: image

The error should be displayed on the login page.

SamuelTallet commented 3 years ago

I agree. Connection errors need to be handled earlier.

ririko5834 commented 3 years ago

Yeah, then it's confusing for users why they can access the dashboard when they have provided fake connection details.