Sometimes, when accessing a specific subfolder on the website it might ask to enter a password twice before entering. This is happening because you have an .htaccess file with password protection rules above the directory that you are trying to password protect. Because of that server might ask for the password of each .htaccess file it finds in its path.
In order to solve this, either move the password protection to your web root folder or remove any rewrite rules/redirects in .htaccess file above the subfolder that you are trying to access.
You can also check and remove password protected directories directly from hPanel’s Password Protect Directories section: