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:
get values from the form
check if current password is correct
check if new one and confirmation are equal
check if new one contains all required symbols
generate new password hash
update value "hash" in database
check if login works with new password
success message
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.
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.