Support Topics Documentation Slack YouTube Blog

Login error


(Eric Alves Brito) #1

I’m having a strange problem when using Backendless in a AS3 Mobile Project.

After i update some user data and log out, i can never log in the user again. Whenever i try, it gives me error 3003 (Invalid login or password).

Just to clarify, the info i change is not the password, nor the email.


(Mark Piller) #2

Hi Eric,

Do you change properties of the same user that is currently logged in, or some other user?

Regards,
Mark


(Eric Alves Brito) #3

Hi Mark, it’s the same user. I login with user “X” and update some property. After that, when i try to login again, i get this error.


(Mark Piller) #4

Hi Eric,

I just ran the following test. My user schema consists of “email”, “password” and “name” properties. The code logs in a user and updates the “name” property. I can run the code multiple times which means that property change didn’t prevent the user from logging in again.

Does your code call logout() ?

      Backendless.initApp( APPID, SECRETKEY, "v1" );
      
      var loginResponder:IResponder = new Responder(
              function( evt:ResultEvent ):void
              {
                var user:BackendlessUser = evt.result as BackendlessUser;
                user.setProperty( "name", "MP" );
                Backendless.UserService.update( user, updateResponder );
              },
              function( evt:FaultEvent ):void
              {
                trace( "unable to login" );
              });


      var updateResponder:IResponder =  new Responder(
              function( evt:ResultEvent ):void
              {
                Backendless.UserService.logout( logoutResponder );
              },
              function( evt:FaultEvent ):void
              {


              });


      var logoutResponder:IResponder = new Responder(
              function( evt:ResultEvent ):void
              {
                trace( "user has been updated and logged out" );
              },
              function( evt:FaultEvent ):void
              {


              }
      );


      Backendless.UserService.login( "joe@backendless.com", "password", loginResponder );

(Eric Alves Brito) #5

Hi Mark, thanks for the quick response. My code doesn’t call logout, i just finish the app and open again. But, for some reason i can’t explain, it’s working now.

I’ve just openned the project and it worked. I am having issues with file upload althought, but i think it’s better to open another thread right?

Well, again, thanks for your patience and quick response. I’m glad to know that people at Backendless care that much about it’s users. Congratulations!