Form / Password / Saving / Overwriting Procedure Question
Posted: Mon Nov 30, 2015 1:15 pm
Not a code question, but a procedure one instead. If it turns out I need more help, I'll post my code.
So, I have this form with my contact information, email address, and password field.
I fill it in and save it to db along with hashed password.
I bring up the form again and look at all my data saved. Looks good! I then decide I want to change my phone number and submit form again.
Now the password has changed in the db 'cause the hashed password that was showing in the password input box was rehashed and sent to the db as a new password when I submitted the form.
What's the standard for dealing with this issue?
Also, while I'm at it. The password input box was showing the hashed password (i.e. ************************) from beginning to end of the password field. Looks dumb. How would I make it so only 7 stars show? 7 is just a random number I picked? Can't find anything on Google relating to this, which is silly 'cause sites to it all the time. I might have a 12 character password, but they only show 6 stars in the field.
Thanks!
So, I have this form with my contact information, email address, and password field.
I fill it in and save it to db along with hashed password.
I bring up the form again and look at all my data saved. Looks good! I then decide I want to change my phone number and submit form again.
Now the password has changed in the db 'cause the hashed password that was showing in the password input box was rehashed and sent to the db as a new password when I submitted the form.
What's the standard for dealing with this issue?
Also, while I'm at it. The password input box was showing the hashed password (i.e. ************************) from beginning to end of the password field. Looks dumb. How would I make it so only 7 stars show? 7 is just a random number I picked? Can't find anything on Google relating to this, which is silly 'cause sites to it all the time. I might have a 12 character password, but they only show 6 stars in the field.
Thanks!