This isn't a bug per se, but something that reduces UX
The confirm password field should also have the autocomplete="new-password" so that the browser's password manager (if it has one) will automatically fill both fields when it autogenerates a strong password, rather than the user having to copy it across
First of all, thank you for the advice! I think that's kind of weird because when I tested it was working. This was my first serious project so there should be a lot of bugs that I have to fix.
This isn't a bug per se, but something that reduces UX The confirm password field should also have the
autocomplete="new-password"
so that the browser's password manager (if it has one) will automatically fill both fields when it autogenerates a strong password, rather than the user having to copy it across