public function drupalchatController::ex_auth in DrupalChat 8
1 string reference to 'drupalchatController::ex_auth'
File
- src/
Controller/ drupalchatController.php, line 1020 - Contains Drupal\drupalchat\Controller\drupalchatController
Class
Namespace
Drupal\drupalchat\ControllerCode
public function ex_auth() {
// Load the current user.
$user = \Drupal\user\Entity\User::load(\Drupal::currentUser()
->id());
$user_name = $user
->getUsername();
$uid = $user
->get('uid')->value;
if ($uid) {
$response = drupalchatController::_drupalchat_get_auth(array());
}
return new JsonResponse($response);
}