zeruniverse/Password-Manager

"last changed on "

Closed this issue · 0 comments

I just found a weird bug (reproductible on the demo).

Steps to reproduce it:

  • Create a password (specifying account and username for example)
  • Click to edit the password, you can see the "last changed on" value in red, everything is normal
  • Add an url or a comment and click on save
  • Click again to edit the password, the value is not visible

Screenshots:

image

image

Solution:
In the plugin showPasswordAge.js, in account["other"], there is no edititempasswordlastchanged.
If we take a look at where/when is edititempasswordlastchanged setted. It is in main.js.
We set it when we create a password (as it should). The problem comes from $("#editbtn").click(function(). When we change the password, the date is modified, otherwise forgotten.
Solution: do not forget the information.