- π©πͺGermany Anybody Porta Westfalica
I understand this is confusing, but after reading this discussion: https://stackoverflow.com/questions/32752578/whats-the-appropriate-http-...
I think status code 200 is correct here! 401 would be an alternative, but it look to me, as if that would be wrong on this level?
How to other Drupal (Rest) API modules reply here?Code-wise this would be easy to fix in
Drupal\services\Plugin\ServiceDefinition\UserLogin
! - π©πͺGermany Anybody Porta Westfalica
I compared the 5.x result to Drupal 7 and in Drupal 7 indeed the returned status code is 401 and the message is: "Invalid username or password."
So a maintainer can perhaps tell, what's expected here!
At least I'd suggest to add a comment to the
return [];
statement, why the status code is chosen and eventually link this issue, if we keep status code 200!Setting priority to 200 to gain visibility and get feedback, especially because of the change vs. Drupal 7.
- Status changed to Needs work
3 months ago 4:48pm 2 April 2024