Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
This is a follow-up from #2403307: RPC endpoints for user authentication: log in, check login status, log out.
If a user is already logged in and a POST
request is sent to user.login.http
, the response comes back as a 403 with an empty message.
The same thing happens for user.logout.http
Proposed resolution
Improve the response message or return the same response with current_user
and tokens.
Comments