0

I have a form for changing my users's passwords.

Chrome is correctly memorizing the user and password combination from the registration and login forms, but the change password form is creating a new user with no name and the new password.

How do I inform the browse this is a change?

hakre
  • 193,403
  • 52
  • 435
  • 836
Josh
  • 3,258
  • 2
  • 19
  • 31
  • I think we're gonna need a lot more details. Could you show some code? – the-nick-wilson Apr 25 '15 at 04:04
  • It's a standard password reset form. The code is in Laravel and it's not very interesting. http://i.imgur.com/t65yLLJ.png -- All it does is ask for your password and the new password twice. The hidden user input is my attempt at telling the browser "we are changing the password for this user". – Josh Apr 25 '15 at 04:06
  • Right now, if I submit the form, it says "Do you want to remember the password for *no user*?" – Josh Apr 25 '15 at 04:06
  • Sorry I've never used Laravel before. – the-nick-wilson Apr 25 '15 at 04:08
  • It has less to do with Laravel and more to do with submitting a standard HTML form with a password and having modern browsers recognize we are changing a record. – Josh Apr 25 '15 at 04:10
  • Maybe I'm misunderstanding something here, but HTML doesn't and can't handle submitting passwords like you're talking about. There's a lot more code behind what you're trying to accomplish and I'm assuming it's part of the Laravel framework. – the-nick-wilson Apr 25 '15 at 04:11
  • 1
    It is not more complicated. I am trying to pass form data in such a way that the browser recognizes it as a change in existing stored passwords. This is not a trick question. – Josh Apr 25 '15 at 04:58
  • 1
    Looking at http://stackoverflow.com/a/2700066/608781 shows that this worked with username and password. try removing the username hidden field from your form. – Tim G Apr 25 '15 at 05:13
  • 1
    Please provide an example with as little code and data as necessary to reproduce what you ask about. Next to that provide reference to existing Q&A material here on site that should or could have worked for you and explain why it didn't help you so it becomes clear how you question is different from existing material. – hakre Apr 25 '15 at 07:36
  • Not all browsers behave the same. Which browser(s) have you tested your (not shown) HTML code with? – hakre Apr 25 '15 at 07:41
  • Ah you're trying to get Chrome to save\store the password locally for the user correctly. I think a screenshot next time would have been much more useful because to me, it sounded like you were trying to save a new password to a database (i.e. "... the change password form is creating a new user with no name and the new password.") – the-nick-wilson Apr 25 '15 at 12:53

0 Answers0