Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instruct browser to only prompt for saving username/password when they have logged in successfully?

I noticed that some site would trigger the browser to prompt for saving username/password Only when they have logged in successfully. How to achieve that? response with HTTP 401 / 403 on error along side with the login form with error message?

Right now when I try logging in with invalid username/password, the server will redirect the browser back to the login form with some error message that indicates to the user that the username/password is incorrect, but the browser would ask if the client want to save the username/password which is inappropriate.

Thank you.

like image 457
Henry Avatar asked May 17 '11 00:05

Henry


People also ask

Does Internet Explorer always prompt for user name and password?

Yes, IE does prompt for password every time. No, Edge never prompted for user name and password. MS SQL server (SSRS) clearly does have an proper authentication method. All other browsers, including Firefox, chrome, yandex, and opera fully work and prompt for username and password.

Are you saving passwords in your browser?

Saving passwords in your browser is an easy mistake to make and it’s very likely that you’ve made this mistake within the past 30 days . Most of us have numerous passwords to keep track of on a regular basis for both business and personal life.

Is it safe to save your username and password?

When you’re asked to login to any website, your browser will ask if you’d like to save your username and password. If you allow it, next time you visit that website, you’ll see your login information pre-populated so you won’t have to remember it. Easy, right? Safe? Absolutely not.

Does Microsoft Edge ever prompt for user name and password?

No, Edge never prompted for user name and password. MS SQL server (SSRS) clearly does have an proper authentication method. All other browsers, including Firefox, chrome, yandex, and opera fully work and prompt for username and password. I'm sorry to say but uservoice site is NOT proof of anything.


1 Answers

You could write some javascript to check if the credentials are correct, then if they are submit the form.

Double login but then the form would only be submitted if the credentials are correct.

like image 83
lmwood Avatar answered Oct 19 '22 22:10

lmwood