embedding passwords

Soldato
Joined
28 Jul 2004
Posts
5,855
Is there a way using html or javascript to autofill in a password pompt box? By embedding the password and username within the code?

Thanks
 
Why would you want to do that? You may be able to put the username in but hopefully not the password as it should be encrypted on the server...
 
I believe that's down to IE disabling that URL format due to vulnerabilities which were quite a large problem before it was patched :)
 
You've got them the wrong way round, should be http://username:password@domain/
Firefox may (can't check atm) automagically fill in input types "password" when using this type of funkiness.
 
Dj_Jestar said:
You've got them the wrong way round, should be http://username:password@domain/
Firefox may (can't check atm) automagically fill in input types "password" when using this type of funkiness.

doesn't seem to here
 
apologies for the mixup before, only just realised you meant HTTP/401 auth and not just a form with username and password inputs.

So basically, you want the ability for a user to login via HTTP auth, and for it to 'remember' them?

That's down to the browser unfortunately, Firefox and IE 'remember' passwords, but not all browsers do.
 
if you were mad, you could probably set the username and password to a session so they only had to fill it out once. then set the session to last like 100 years. i don't really know why you'd want to do that though - just save the username and password to the browser, as Mr_Jestar said.
 
Back
Top Bottom