-
Notifications
You must be signed in to change notification settings - Fork 39
WIP: Added social-media user-provider #100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2.0
Are you sure you want to change the base?
Conversation
080fb26 to
29ad156
Compare
| $user->setEnabled(true); | ||
| $user->setLocale('de'); // FIXME locale | ||
|
|
||
| $this->em->persist($contact); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should implement this instead: https://github.com/sulu/SuluCommunityBundle/blob/develop/Controller/RegistrationController.php#L50-L68
| $contact->setLastName($response->getLastName()); | ||
| $user->setContact($contact); | ||
|
|
||
| $user->setUsername($this->generateRandomUsername($username, $service)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be generated from first part of the email address + uniquepostfix?
29ad156 to
a35146e
Compare
a35146e to
a38e2d8
Compare
3ece27b to
be51861
Compare
…into feature/some-login
c89e97d to
455ef59
Compare
What's in this PR?
This PR integrates the
HWIOAuthBundleto allow social-media logins via facebook, google and co.To Do