Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[6.x] Handle ajax requests in RequirePassword middleware #30390
The newly introduced RequirePassword middleware does not handle ajax requests very well.
This pull request addresses this problem, for easier handling via ajax frontend libraries (like axios), I'm proposing that the error should be sent with error code
Considered alternative error codes:
I'm open for different error code ideas.