public function retrieveByCredentials(array $credentials) { // Do not allowing login without password. if (!array_key_exists('password', $credentials)) { return; } unset($credentials['password']); $user = $this->userService->getUser($credentials); return $this->getOwlUser($user); }