You are here

static function MoAuthUtilities::getSession in Google Authenticator / 2 Factor Authentication - 2FA 8.2

11 calls to MoAuthUtilities::getSession()
authenticate_user::buildForm in src/Form/authenticate_user.php
Form constructor.
authenticate_user::mo_auth_authenticate_user_submit in src/Form/authenticate_user.php
authenticate_user::mo_auth_build_oobemail_form in src/Form/authenticate_user.php
authenticate_user::mo_auth_build_push_notifications_form in src/Form/authenticate_user.php
authenticate_user::mo_auth_challenge_user in src/Form/authenticate_user.php

... See full list

File

src/MoAuthUtilities.php, line 697
This file is part of miniOrange 2FA module.

Class

MoAuthUtilities

Namespace

Drupal\miniorange_2fa

Code

static function getSession() {
  $session_manager = \Drupal::service('session_manager');
  if (!$session_manager
    ->isStarted()) {
    $session_manager
      ->start();
  }
  $request = \Drupal::request();
  return $request
    ->getSession();
}