First login / registration using facebook or google

Michał Janusz, modified 6 Years ago. New Member Posts: 14 Join Date: 3/8/16 Recent Posts

Hi,

 

I have problem with first login using Liferay's built in facebook or google social login. It happens only when user didn't logged or register to Lifery before and during that login account is created. Actually I am not sure if this is one or two separate problems. I am using Liferay 7.1 ga2.

 

1) Liferay sends emali verification link to the user. Email verification is turned on because it is needed for users that registers to the portal in a normal way (without fb or google), but for social login it is not necessary since email is markd as verified automatically. Also verification links that are sent are corrupted (don't contain portal base url):

"http://nullnull/portal/verify_email_address?ticketKey=28b6983e-39cb-e449-a394-1c14457a9902"

This is not a new problem. It happend also in Liferay 6.2. As a workaround we were filtering outgoing email by "nullnull" string in mailbox. But I am looking for a proper solution to prevent sending this emails.

 

2) After first use of facebook or google login button user's account is created in database, but the user is redirected back to the login page without any message and without being logged in. Second click on facebook or google login works properly (user is logged in). Also any subsequesnt login actions work ok.

 

Thanks in advance

Michał

Michał Janusz, modified 6 Years ago. New Member Posts: 14 Join Date: 3/8/16 Recent Posts
I will answer it myself. Both things required customisations of social login moduls / user service for workaround.
I would say those are more liferay bugs than features emoticon
1) Verification email shoudn't be sant when loging with social media because email is already verified by google or fb.
2) Autogeneration of password automatically invalidates session. It should not happen during social login.