Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Pete Helgren
Validate user by email and password
August 16, 2013 8:39 AM
Answer

Pete Helgren

Rank: Regular Member

Posts: 126

Join Date: April 7, 2011

Recent Posts

I have a mobile app (servlet) that is hosted on the same server as LR (6.0.6) and uses services provided by LR in conjunction with several other servlets. I can access several of the services by user email address but I want the user to authenticate before I pass the email address to the API's I have written. Since they already have a userid and password in LR, is there an API I can call and pass it the email and password and LR will return whether the combination is valid or not? I scanned through the source and I can find a password reset API but I couldn't find an API that just was a pass/fail on an email/password combination.
Tomas Polesovsky
RE: Validate user by email and password
August 16, 2013 12:37 PM
Answer

Tomas Polesovsky

LIFERAY STAFF

Rank: Liferay Master

Posts: 596

Join Date: February 13, 2009

Recent Posts

Hi Pete,

https://github.com/liferay/liferay-portal/blob/6.1.1-ga2/portal-service/src/com/liferay/portal/service/UserLocalServiceUtil.java#L557,L591