Login fails after register a new user

Hi,

I have registered a new user and it successfully returns a new BackendlessUser. Follows that I tried to login with the returned user by login:user.email password: user.password. But it failed with 3003. I checked the returned user’s password by NSLog, it prints null. Any idea?

Platform:iOS

Best regards,
Weinan

Hi, Weinan!
Server doesn’t return password due to security reasons. Thats why your login fails - you are trying to use returned password.
Best regards,
Alex

It used to work like this: signup -> get registered user info -> login with the email and password.

How do I do it now? Will it be automatically logged in after user registered?

Kind regards,
Weinan

What do you mean under “signup”?

Sorry for the confusion. SignUp = register a new user.

In my iOS app, user need to register as a new user to user my app. After a new user registered, I want to make the user login automatically. I used to work like this: register as a new user and the server will return the register user object. It used to include password in the returned user object. When did you removed this for security reason?

In order to implement it user should call login with the same password as he used for registration.

If you’ve ever received password in response - then it has been a bug on our server side.
It works this way for at least 2 years.

Thanks! This thread can be closed.