Initialize force login after register
-
I am successfully using the feature to register new users … but only if the option “Initialize force login after register” is unchecked. If I check this option, the response is 500 Internal Server Error.
Plugin version: 2.1.0
My url is of the form:
https://{{hostname}}/?rest_route=/simple-jwt-login/v1/users&AUTH_KEY={{auth-code}}
My POST body is of the form:
{
“email”: “{{email}}”,
“user_login”: “{{user-login}}”,
“first_name”: “{{first-name}}”,
“last_name”: “{{last-name}}”
}Note that even though, the response is 500, the user DOES get created, however the user is not auto-logged in.
More info from PHP error log:
Uncaught Error: Call to a member function get() on int in /srv/bindings/e69f35dcbdcd44928d3e09ab315d53af/code/wp-content/plugins/simple-jwt-login/src/modules/WordPressData.php:35
The topic ‘Initialize force login after register’ is closed to new replies.