Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
First login / registration using facebook or google
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ł
I would say those are more liferay bugs than features

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.
Powered by Liferay™