I'm developing a registration for local users in my app and I've encountered a strange behavior of the User.register function. When this function is called without any input data (e.g. {}) it still creates an empty new user without data, no errors are thrown.
Hello!
I'm developing a registration for local users in my app and I've encountered a strange behavior of the
User.register
function. When this function is called without any input data (e.g.{}
) it still creates an empty new user without data, no errors are thrown.Here's my controller action:
When POSTed with empty body it produces this entity: