Преглед на файлове

restore email from github

Jordi Boggiano преди 10 години
родител
ревизия
b6175ae2ce
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/Packagist/WebBundle/Form/Handler/OAuthRegistrationFormHandler.php

+ 1 - 0
src/Packagist/WebBundle/Form/Handler/OAuthRegistrationFormHandler.php

@@ -51,6 +51,7 @@ class OAuthRegistrationFormHandler implements RegistrationFormHandlerInterface
         // Try to get some properties for the initial form when coming from github
         if ('GET' === $request->getMethod()) {
             $user->setUsername($this->getUniqueUsername($userInformation->getNickname()));
+            $user->setEmail($userInformation->getEmail());
         }
 
         $form->setData($user);