diff --git a/ground/controllers/IndexController.php b/ground/controllers/IndexController.php index 066b60d..4cf5910 100644 --- a/ground/controllers/IndexController.php +++ b/ground/controllers/IndexController.php @@ -47,6 +47,7 @@ class IndexController extends Controller { $source = file_get_contents('http://ulogin.ru/token.php?token=' . $_POST['token'] . '&host=' . $_SERVER['HTTP_HOST']); $uLoginUser = json_decode($source, true); + //var_dump($uLoginUser);die; $uLoginUser['identity'] = md5($uLoginUser['uid'].$uLoginUser['network'].'=P'); $user = new User(); @@ -59,7 +60,8 @@ class IndexController extends Controller 'nick' => $uLoginUser['nickname'], 'name' => $uLoginUser['first_name'], 'profile' => $uLoginUser['profile'], - 'network' => $uLoginUser['network'] + 'network' => $uLoginUser['network'], + 'photo' => $uLoginUser['photo_big'], )); if (!$user) diff --git a/ground/views/modals/login.php b/ground/views/modals/login.php index a9bfd88..c43ebda 100644 --- a/ground/views/modals/login.php +++ b/ground/views/modals/login.php @@ -6,7 +6,7 @@