RE: Unable to Login using Screenlet

John Cressman, modified 7 Years ago. Junior Member Posts: 39 Join Date: 8/15/17 Recent Posts

We're trying to create the simplest of apps following the tutorial on the university site using Android Studio:

 

https://university.liferay.com/mobile-development/203967

 

 

We setup com.liferay.mobile.screens.auth.login.LoginScreenlet and include the correct instance (company) id and the site id and the login screen displays however, no matter which id we use, it will not login (we get the login failed error).

Is there something special we need to do to login?

We've even tried the admin user id and made sure they were a member of the site and still not success.

We're running this in the android emulator against a local copy of Liferay DXP.

What am we missing?

thumbnail
Victor Galan, modified 7 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts

Can you paste the error that you are receiving?

 

If you are trying to log in using the userId, do you have your LoginScreenlet basicAuthMode property set to "userId"?

 

Regards

John Cressman, modified 7 Years ago. Junior Member Posts: 39 Join Date: 8/15/17 Recent Posts

The only error is the error msg I get from the listener (on failure).  Is there another way to get the exact error message?

 

We have it setup to use screenname.  But I tried it both ways.

thumbnail
Victor Galan, modified 7 Years ago. Regular Member Posts: 144 Join Date: 6/14/16 Recent Posts

Hi!

 

What error are you getting?

Can you show us how are you configuring the project/ screenlets?

 

Regards