From f7567dc2507403430f3e34d3d663aee5d756fb51 Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 10 Oct 2014 16:35:02 +1100 Subject: [PATCH] More minor updates --- classes/lnApp/Controller/User/Account.php | 6 ++++-- classes/lnApp/Controller/User/Welcome.php | 4 ++++ views/account/user/edit.php | 16 ++++++++-------- views/account/user/resetpassword.php | 4 ++-- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/classes/lnApp/Controller/User/Account.php b/classes/lnApp/Controller/User/Account.php index 2858147..902b066 100644 --- a/classes/lnApp/Controller/User/Account.php +++ b/classes/lnApp/Controller/User/Account.php @@ -10,9 +10,11 @@ * @license http://dev.leenooks.net/license.html */ abstract class lnApp_Controller_User_Account extends Controller_Account { + protected $auth_required = TRUE; + protected $secure_actions = array( - 'edit'=>TRUE, - 'resetpassword'=>TRUE, + 'edit'=>0, + 'resetpassword'=>0, ); /** diff --git a/classes/lnApp/Controller/User/Welcome.php b/classes/lnApp/Controller/User/Welcome.php index 75ed0fa..3f705fe 100644 --- a/classes/lnApp/Controller/User/Welcome.php +++ b/classes/lnApp/Controller/User/Welcome.php @@ -12,6 +12,10 @@ abstract class lnApp_Controller_User_Welcome extends Controller_Welcome { protected $auth_required = TRUE; + protected $secure_actions = array( + 'index'=>0, + ); + public function action_index() { throw HTTP_Exception::factory(500,'Site not setup!'); } diff --git a/views/account/user/edit.php b/views/account/user/edit.php index aa67c36..d5a38c3 100644 --- a/views/account/user/edit.php +++ b/views/account/user/edit.php @@ -1,7 +1,7 @@
Account Details - display('email'),array('label'=>'Email','class'=>'col-md-3','placeholder'=>'Email Address','type'=>'email','required','data-error'=>'Invalid EMAIL address')); ?> + display('email'),array('label'=>'Email','divclass'=>'col-md-3','placeholder'=>'Email Address','type'=>'email','required','data-error'=>'Invalid EMAIL address')); ?>
@@ -10,33 +10,33 @@ display('title'),array('class'=>'form-control','required','nocg'=>TRUE)); ?>
- display('first_name'),array('class'=>'form-control col-md-2','placeholder'=>'First Name','required','nocg'=>TRUE)); ?> + display('first_name'),array('class'=>'form-control','placeholder'=>'First Name','required','nocg'=>TRUE)); ?>
- display('last_name'),array('class'=>'form-control col-md-2','placeholder'=>'Last Name','required','nocg'=>TRUE)); ?> + display('last_name'),array('class'=>'form-control','placeholder'=>'Last Name','required','nocg'=>TRUE)); ?>
- display('address1'),array('class'=>'col-md-6','placeholder'=>'Address Line 1','required')); ?> + display('address1'),array('divclass'=>'col-md-6','placeholder'=>'Address Line 1','required')); ?> - display('address2'),array('class'=>'col-md-6','placeholder'=>'Address Line 2')); ?> + display('address2'),array('divclass'=>'col-md-6','placeholder'=>'Address Line 2')); ?>
- display('city'),array('label'=>'City','placeholder'=>'City','required','nocg'=>TRUE)); ?> + display('city'),array('class'=>'form-control','label'=>'City','placeholder'=>'City','required','nocg'=>TRUE)); ?>
- display('state'),array('label'=>'','class'=>'input-mini','placeholder'=>'State','required','nocg'=>TRUE)); ?> + display('state'),array('class'=>'form-control','placeholder'=>'State','required','nocg'=>TRUE)); ?>
- display('zip'),array('label'=>'','class'=>'input-mini','placeholder'=>'Post Code','required','nocg'=>TRUE)); ?> + display('zip'),array('class'=>'form-control','placeholder'=>'Post Code','required','nocg'=>TRUE)); ?>
diff --git a/views/account/user/resetpassword.php b/views/account/user/resetpassword.php index 0dfb411..cb2393d 100644 --- a/views/account/user/resetpassword.php +++ b/views/account/user/resetpassword.php @@ -1,8 +1,8 @@
Reset Password - 'Password','class'=>'col-md-3','placeholder'=>'Login Password','type'=>'password','required','id'=>'password','data-minlength'=>8)); ?> - 'Confirm','class'=>'col-md-3','placeholder'=>'Confirm Password','type'=>'password','required','data-match'=>'#password','data-match-error'=>'Whoops, these don\'t match!')); ?> + 'Password','divclass'=>'col-md-3','placeholder'=>'Login Password','type'=>'password','required','id'=>'password','data-minlength'=>8)); ?> + 'Confirm','divclass'=>'col-md-3','placeholder'=>'Confirm Password','type'=>'password','required','data-match'=>'#password','data-match-error'=>'Whoops, these don\'t match!')); ?>