Resolves #57 "Add password resetting and changing"
#57 (closed)
ClosesNotes:
Adds backend support for changing and resetting passwords in one API view dependi gon if a new_password
field is in the data with the PUT request. Added full tests for changing and resetting.
Added change password button to the Introduction page that pops up a modal where a new password can be entered and submitted.
Added buttons to the Teams
view for resetting the passwords to random strings (generated like secret keys) so the password can be shared with the user so they can log in again and change their password.
Relies on associated PR in core-fe https://stgit.dcs.gla.ac.uk/team-project-h/2021/cs11/ybc-core-fe/-/merge_requests/22.
Moving adding teacher and judge password resetting to the teacher and judge management issues - #15 (closed), and #16 (closed).
Demo:
Screen_Recording_2022-03-09_at_13.44.57
Manual testing TBC:
-
Make sure that teachers can reset their teams passwords -
Make sure teams can change their own passwords -
Make sure teachers can change their own passwords -
Make sure judges can change their own passwords -
Make sure admins can change their own passwords