cootook / project

Learn by doing project for everybody
MIT License
0 stars 0 forks source link

feat: add change password #12

Closed cootook closed 9 months ago

cootook commented 9 months ago

What?

I implement a feature of changing password. Also I added a new template "message_page.html" and "change_password.js"

6 (issue)

Why?

It is a standard feature.

How?

Click "change password" button -> redirect to "change_password" view -> after entering current password, new one and confirmation, route handler comes into play -> rout handler:

Testing?

No

Screenshots (optional)

0

Anything Else?

"change_password.js" is almost the same as "sign_up.js". The both validate new passwords. They can be combined into one.

cootook commented 9 months ago

If login with new password failed it is better to write the old password hash into database.