function miniorange_2fa_help in Google Authenticator / 2 Factor Authentication - 2FA 8.2
Implements hook_help().
File
- ./
miniorange_2fa.module, line 229 - Module file for miniOrange 2FA Module.
Code
function miniorange_2fa_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.miniorange_2fa':
$url = Url::fromRoute('user.admin_index')
->toString();
$moduleLink = $url . '/miniorange_2fa/customer_setup';
$supoortLink = $url . '/miniorange_2fa/customer_setup';
$GoogleAuthenticator = 'https://plugins.miniorange.com/drupal-google-authenticator';
$MicrosoftAuthenticator = 'https://plugins.miniorange.com/drupal-microsoft-authenticator';
$DuoAuthenticator = 'https://plugins.miniorange.com/drupal-duo-authenticator';
$AuthyAuthenticator = 'https://plugins.miniorange.com/drupal-authy-authenticator';
$LastPassAuthenticator = 'https://plugins.miniorange.com/drupal-lastpass-authenticator';
$miniOrangeAuthenticator = 'https://plugins.miniorange.com/drupal-soft-token';
$OtpOverSMS = 'https://plugins.miniorange.com/drupal-otp-over-sms';
$OtpOverEmail = 'https://plugins.miniorange.com/drupal-otp-over-email';
$OtpOverSMSandEmail = 'https://plugins.miniorange.com/drupal-otp-over-sms-and-email';
$OtpOverPhoneCall = 'https://plugins.miniorange.com/drupal-otp-over-phone';
$EmailVerification = 'https://plugins.miniorange.com/drupal-email-verification';
$HardwareToken = 'https://plugins.miniorange.com/drupal-hardware-token-yubikey';
$SecurityQuestions = 'https://plugins.miniorange.com/drupal-security-questions-kba';
$PushNotification = 'https://plugins.miniorange.com/drupal-push-notifications';
$QrCodeAuthentication = 'https://plugins.miniorange.com/drupal-qr-code-authentication';
$output = '';
$output .= '<h3>' . t('About <a target="_blank" href="https://plugins.miniorange.com/drupal-two-factor-authentication-2fa">[Know more]</a>') . '</h3>';
$output .= '<p>' . t('A highly secure & easy to setup Two Factor Authentication (TFA) for your Drupal site. Rather than relying on a password alone, which can be phished or guessed, miniOrange Two Factor Authentication (TFA) adds a second layer of security to your Drupal accounts. It protects your site from hacks and unauthorized login attempts.') . '</p>';
$output .= '<h3>' . t('Configuration') . '</h3>';
$output .= '<p>' . t('Configure Two-Factor Authentication in Configuration » <a target = "_blank" href=" ' . $url . ' ">People</a> » <a target = "_blank" href=" ' . $moduleLink . ' ">miniOrange Two-Factor Authentication</a>:') . '</p>';
$output .= '<p>
<ol>
<li>' . t('Register with miniOrange. If you already have miniOrange account, enter your username and password to retrieve your account.') . '</li>
<li>' . t('Once the account is retrieved, go to Setup Two-Factor tab to configure the authentication method you would like to use.') . '</li>
<li>' . t('If you need any assistance, go to <a target = "_blank" href="' . $supoortLink . '">Support tab</a> and submit your query. You can also email us at <a href="mailto:drupalsupport@xecurify.com">drupalsupport@xecurify.com</a> or <a href="mailto:info@xecurify.com">info@xecurify.com</a>') . '</li>
</ol>
</p>';
$output .= '<br><h3>' . t('Setup Guides') . '</h3>';
$output .= '<p>
<table>
<tr>
<th>' . t('TOTP Based 2FA methods') . '</th>
<th>' . t('OTP Based 2FA methods') . '</th>
<th>' . t('Other 2FA methods') . '</th>
</tr>
<tr>
<td>' . t('<a target = "_blank" href="' . $GoogleAuthenticator . '">Google Authenticator</a>') . '</td>
<td>' . t('<a target = "_blank" href="' . $OtpOverSMS . '">OTP Over SMS</a>') . '</td>
<td>' . t('<a target = "_blank" href="' . $EmailVerification . '">Email Verification</a>') . '</td>
</tr>
<tr>
<td>' . t('<a target = "_blank" href="' . $MicrosoftAuthenticator . '">Microsoft Authenticator</a>') . '</td>
<td>' . t('<a target = "_blank" href="' . $OtpOverEmail . '">OTP Over Email</a>') . '</td>
<td>' . t('<a target = "_blank" href="' . $HardwareToken . '">Hardware Token</a>') . '</td>
</tr>
<tr>
<td>' . t('<a target = "_blank" href="' . $DuoAuthenticator . '">Duo Authenticator</a>') . '</td>
<td>' . t('<a target = "_blank" href="' . $OtpOverSMSandEmail . '">OTP Over SMS and Email</a>') . '</td>
<td>' . t('<a target = "_blank" href="' . $SecurityQuestions . '">Security Questions (KBA)</a>') . '</td>
</tr>
<tr>
<td>' . t('<a target = "_blank" href="' . $AuthyAuthenticator . '">Authy Authenticator</a>') . '</td>
<td>' . t('<a target = "_blank" href="' . $OtpOverPhoneCall . '">OTP Over Phone call</a>') . '</td>
<td>' . t('<a target = "_blank" href="' . $PushNotification . '">Push Notification</a>') . '</td>
</tr>
<tr>
<td>' . t('<a target = "_blank" href="' . $LastPassAuthenticator . '">LastPass Authenticator</a>') . '</td>
<td></td>
<td>' . t('<a target = "_blank" href="' . $QrCodeAuthentication . '">QR Code Authentication</a>') . '</td>
</tr>
<tr>
<td>' . t('<a target = "_blank" href="' . $miniOrangeAuthenticator . '">miniOrange Authenticator</a>') . '</td>
<td></td>
<td></td>
</tr>
</table>
</p><br>';
return $output;
}
}