Invalid Login or Password after Import into New Version

So, I created a new version in my app called “dev”. Then, I exported all of the data from version “v1” and imported the schema and data into “dev”. When I try to login to either version now I am getting the following response:

{ code: 3003, message: “Invalid login or password” }

I’ve tried manually calling the “logout()” method and then calling login but that produces the same response.

This is my application id: 30C66546-0714-7CF0-FFD1-F6797F56F700, and I’m using NodeJS.

Hi Christopher,

Which user account do you login with? cw…@ or fb…@ ?

Regards,
Mark

The cw one, I can change my password temporarily if necessary.

Also, it seems that my queries are still executing even without the login succeeding. I assume that I need to set some RBAC on the user’s individually for the queries to be protected?

Please change the password in both versions and we will try it out from here. You can email the new password to support@backendless.com with a link to this topic.

To disable unauthenticated requests, you would need to change the permissions for the NotAuthenticatedUser role.

Regards,
Mark

So, I truncated my User table and now it’s working for only one of the versions and not the other.

I’m sending the email with the credentials for cw now.

Thanks, Christopher. I was able to reproduce the problem and figured out what the cause of it is. When the version was migrated, the “identity” column was not properly set. The “v1” version sets the “username” column as identity, while the version “dev” uses the “email” column as identity. If you set the column in “dev” to “username”, it will work. You can do that in the “Table Schema and Permissions” screen.

Regards,
Mark

Ah okay, it’s working now.

Thank you guys for providing a great product, and outstanding support! :slight_smile: