Describe the bug
The edit account details form, both for Teacher and Independent Student, is broken. Since 01/11/2024, for no apparent reason, the form has stopped processing data properly.
The form allows the user to do 3 things:
update their name
update their email address
update their password
In each case, the user needs to input their current password to submit the password. The name field is pre-populated, and every other field is optional.
However, now, the form acts like the new password field is required. Because of that, the user can't just update their name or email address without changing password, which is not the intended behaviour.
Describe the bug The edit account details form, both for Teacher and Independent Student, is broken. Since 01/11/2024, for no apparent reason, the form has stopped processing data properly.
The form allows the user to do 3 things:
In each case, the user needs to input their current password to submit the password. The name field is pre-populated, and every other field is optional.
However, now, the form acts like the new password field is required. Because of that, the user can't just update their name or email address without changing password, which is not the intended behaviour.
To Reproduce Steps to reproduce the behaviour:
This means the form submitted the new password field as an empty string instead of ignoring it.
Expected behaviour The form should only check the fields that have been filled in.
Screenshots
Desktop (please complete the following information): All
Good Places to Start Independent Student Edit Account Form Independent Student Edit Account View Independent Student Edit Account Template
Teacher Edit Account Form Teacher Edit Account View Teacher Edit Account Template
Additional context This is causing some of our existing tests to fail.