From 33dea152fc6b0c061b1f61060cc75710dd0ec236 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 26 May 2016 21:05:54 -0400 Subject: Rename 2FA controller --- app/Template/twofactor/check.php | 4 ++-- app/Template/twofactor/disable.php | 2 +- app/Template/twofactor/index.php | 2 +- app/Template/twofactor/show.php | 4 ++-- app/Template/user_view/sidebar.php | 10 +++++----- 5 files changed, 11 insertions(+), 11 deletions(-) (limited to 'app/Template') diff --git a/app/Template/twofactor/check.php b/app/Template/twofactor/check.php index b0cb4825..06801d50 100644 --- a/app/Template/twofactor/check.php +++ b/app/Template/twofactor/check.php @@ -1,4 +1,4 @@ -
+ form->csrf() ?> form->label(t('Code'), 'code') ?> @@ -7,4 +7,4 @@
-
\ No newline at end of file + diff --git a/app/Template/twofactor/disable.php b/app/Template/twofactor/disable.php index bdbe1233..bc419181 100644 --- a/app/Template/twofactor/disable.php +++ b/app/Template/twofactor/disable.php @@ -8,7 +8,7 @@

- url->link(t('Yes'), 'twofactor', 'disable', array('user_id' => $user['id'], 'disable' => 'yes'), true, 'btn btn-red') ?> + url->link(t('Yes'), 'TwoFactorController', 'disable', array('user_id' => $user['id'], 'disable' => 'yes'), true, 'btn btn-red') ?> url->link(t('cancel'), 'UserViewController', 'show', array('user_id' => $user['id'])) ?>
diff --git a/app/Template/twofactor/index.php b/app/Template/twofactor/index.php index 6de36514..1ed414ed 100644 --- a/app/Template/twofactor/index.php +++ b/app/Template/twofactor/index.php @@ -2,7 +2,7 @@

-
+ form->csrf() ?>

text->e($provider) ?>

diff --git a/app/Template/twofactor/show.php b/app/Template/twofactor/show.php index 59897e20..0aeef427 100644 --- a/app/Template/twofactor/show.php +++ b/app/Template/twofactor/show.php @@ -19,7 +19,7 @@

- + form->csrf() ?> form->label(t('Code'), 'code') ?> @@ -28,4 +28,4 @@
- \ No newline at end of file + diff --git a/app/Template/user_view/sidebar.php b/app/Template/user_view/sidebar.php index 5eb0457b..0f2f3569 100644 --- a/app/Template/user_view/sidebar.php +++ b/app/Template/user_view/sidebar.php @@ -49,12 +49,12 @@ user->isCurrentUser($user['id'])): ?> -
  • app->checkMenuSelection('twofactor', 'index') ?>> - url->link(t('Two factor authentication'), 'twofactor', 'index', array('user_id' => $user['id'])) ?> +
  • app->checkMenuSelection('TwoFactorController', 'index') ?>> + url->link(t('Two factor authentication'), 'TwoFactorController', 'index', array('user_id' => $user['id'])) ?>
  • - user->hasAccess('twofactor', 'disable') && $user['twofactor_activated'] == 1): ?> -
  • app->checkMenuSelection('twofactor', 'disable') ?>> - url->link(t('Two factor authentication'), 'twofactor', 'disable', array('user_id' => $user['id'])) ?> + user->hasAccess('TwoFactorController', 'disable') && $user['twofactor_activated'] == 1): ?> +
  • app->checkMenuSelection('TwoFactorController', 'disable') ?>> + url->link(t('Two factor authentication'), 'TwoFactorController', 'disable', array('user_id' => $user['id'])) ?>
  • -- cgit v1.2.3