Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/plugin/oauth2/config.dist.php

14 lines
565 B

<?php
/**
* Adjust user account values.
*
* @param array $response the Resource Owner Details
* @param Chamilo\UserBundle\Entity\User $user the user
* with firstname, lastname, status, username and email already updated
* but unsaved
*/
function oauth2UpdateUserFromResourceOwnerDetails(array $response, Chamilo\UserBundle\Entity\User $user)
{
$user->setStatus(STUDENT);
$user->setPhone($response['data'][0]['telephone']);
}