You are here

public function AuthenticationController::logout in Janrain Registration 8

Logout user from the system.

1 string reference to 'AuthenticationController::logout'
janrain_capture.routing.yml in ./janrain_capture.routing.yml
janrain_capture.routing.yml

File

src/Controller/AuthenticationController.php, line 111

Class

AuthenticationController
Authentication controller.

Namespace

Drupal\janrain_capture\Controller

Code

public function logout() {
  user_logout();
  return new RedirectResponse(Url::fromRoute('<front>', [], [
    'absolute' => TRUE,
  ])
    ->toString(), RedirectResponse::HTTP_MOVED_PERMANENTLY);
}