It turned out that these two issues went hand in hand - some elements needed to be added to the webUI to get the cookies to work, and vice versa.
Some work is probably still needed on the webUI front, but userpass authentication seems to work fine. Setting this PR to draft as I'd like to get feedback on the changes but it's hard to properly test things when the links etc don't work properly (a wider development issue).
It turned out that these two issues went hand in hand - some elements needed to be added to the webUI to get the cookies to work, and vice versa.
Some work is probably still needed on the webUI front, but userpass authentication seems to work fine. Setting this PR to draft as I'd like to get feedback on the changes but it's hard to properly test things when the links etc don't work properly (a wider development issue).