Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * @var \App\View\AppView $this * @var mixed $providers * @var mixed $verifyFo..
Decoded Output download
<?php
/**
* @var \App\View\AppView $this
* @var mixed $providers
* @var mixed $verifyForm
* @var bool $isRememberMeForAMonthEnabled
*/
use Cake\Routing\Router;
use Passbolt\MultiFactorAuthentication\Utility\MfaSettings;
$title = __('Multi factor authentication verification');
$this->assign('title', $title);
$this->assign('pageClass', 'login v240918');
$formContext = [
'url' => Router::url('/mfa/verify/totp?redirect=' . $redirect, true),
'class' => ['totp-setup'],
];
?>
<div class="login-form ">
<h1>
<?= __('Enter the six digit number as presented on your phone or tablet.'); ?>
</h1>
<?= $this->Form->create($verifyForm, $formContext); ?>
<?= $this->Form->control('totp', [
'label' => 'One Time Password (OTP)',
'placeholder' => '123456',
'autofocus' => 'autofocus',
'autocomplete' => 'off'
]); ?>
<?php if ($isRememberMeForAMonthEnabled): ?>
<div class="input checkbox">
<input type="checkbox" name="remember" value="remember" id="remember">
<label for="remember" ><?= __('Remember this device for a month.'); ?></label>
</div>
<?php endif; ?>
<?= $this->element('formActions', ['providers' => $providers, 'redirect' => $redirect, 'currentProvider' => MfaSettings::PROVIDER_TOTP]); ?>
<?= $this->Form->end(); ?>
</div>
Did this file decode correctly?
Original Code
<?php
/**
* @var \App\View\AppView $this
* @var mixed $providers
* @var mixed $verifyForm
* @var bool $isRememberMeForAMonthEnabled
*/
use Cake\Routing\Router;
use Passbolt\MultiFactorAuthentication\Utility\MfaSettings;
$title = __('Multi factor authentication verification');
$this->assign('title', $title);
$this->assign('pageClass', 'login v240918');
$formContext = [
'url' => Router::url('/mfa/verify/totp?redirect=' . $redirect, true),
'class' => ['totp-setup'],
];
?>
<div class="login-form ">
<h1>
<?= __('Enter the six digit number as presented on your phone or tablet.'); ?>
</h1>
<?= $this->Form->create($verifyForm, $formContext); ?>
<?= $this->Form->control('totp', [
'label' => 'One Time Password (OTP)',
'placeholder' => '123456',
'autofocus' => 'autofocus',
'autocomplete' => 'off'
]); ?>
<?php if ($isRememberMeForAMonthEnabled): ?>
<div class="input checkbox">
<input type="checkbox" name="remember" value="remember" id="remember">
<label for="remember" ><?= __('Remember this device for a month.'); ?></label>
</div>
<?php endif; ?>
<?= $this->element('formActions', ['providers' => $providers, 'redirect' => $redirect, 'currentProvider' => MfaSettings::PROVIDER_TOTP]); ?>
<?= $this->Form->end(); ?>
</div>
Function Calls
None |
Stats
MD5 | 95a54c47d7f25ec29ce947074e9d4b1e |
Eval Count | 0 |
Decode Time | 90 ms |