Add facebook login

This commit is contained in:
PEDSF 2020-12-18 19:11:45 +01:00
parent fbdafee1a6
commit 8301534007

View file

@ -167,11 +167,13 @@ public class UserController extends WebSocketSender {
firstName = attributes.get(CommonAttribute.GOOGLE_FIRSTNAME).toString();
lastName = attributes.get(CommonAttribute.GOOGLE_LASTNAME).toString();
providerId = attributes.get(CommonAttribute.GOOGLE_PROVIDER_ID).toString();
} else if (provider.equals(CommonAttribute.GITHUB)) {
}
else if (provider.equals(CommonAttribute.GITHUB)) {
firstName = attributes.get(CommonAttribute.GITHUB_FIRSTNAME).toString();
lastName = attributes.get(CommonAttribute.GITHUB_LASTNAME).toString();
providerId = attributes.get(CommonAttribute.GITHUB_PROVIDER_ID).toString();
} else {
}
else {
firstName = attributes.get(CommonAttribute.FACEBOOK_FIRSTNAME).toString();
lastName = attributes.get(CommonAttribute.FACEBOOK_LASTNAME).toString();
providerId = attributes.get(CommonAttribute.FACEBOOK_PROVIDER_ID).toString();