From eeac2329baab1fdae7cbf6c707ed2ffd8beb4c1b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 24 May 2015 16:02:25 -0400 Subject: Helpers refactoring --- app/Template/twofactor/index.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'app/Template/twofactor/index.php') diff --git a/app/Template/twofactor/index.php b/app/Template/twofactor/index.php index 28e93f14..36b92653 100644 --- a/app/Template/twofactor/index.php +++ b/app/Template/twofactor/index.php @@ -2,10 +2,10 @@

-
+ - formCsrf() ?> - formCheckbox('twofactor_activated', t('Enable/disable two factor authentication'), 1, isset($user['twofactor_activated']) && $user['twofactor_activated'] == 1) ?> + form->csrf() ?> + form->checkbox('twofactor_activated', t('Enable/disable two factor authentication'), 1, isset($user['twofactor_activated']) && $user['twofactor_activated'] == 1) ?>
@@ -24,11 +24,11 @@

- + - formCsrf() ?> - formLabel(t('Code'), 'code') ?> - formText('code', array(), array(), array('placeholder="123456"'), 'form-numeric') ?> + form->csrf() ?> + form->label(t('Code'), 'code') ?> + form->text('code', array(), array(), array('placeholder="123456"'), 'form-numeric') ?>
-- cgit v1.2.3