Commit 54e07205 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Transmission du login au mouchard

parent b31cebac
......@@ -23,9 +23,11 @@ class MouchardCompleterAuth implements MouchardCompleterInterface
public function complete(MouchardMessage $message)
{
$user = $this->getServiceUserContext()->getDbUser();
if ($user) $user = $user->getDisplayName();
if ($user){
$message->setUser($user->getDisplayName());
$message->setLogin($user->getUsername());
}
$message->setUser($user);
$message->setRole((string)$this->getServiceUserContext()->getSelectedIdentityRole());
return $this;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment