i am creating a web service for login and register.
for login- http://example.com/endpointname/user/login
for register- http://example.com/endpointname/user/register
BUT i want a single url link for register and login, i.e. when user registers, it will automatically logged in. No need of two services for register and login. How can i get this?