public function postPassword() { $pass = $_REQUEST['user_password']; $Validate = new Validate(); $rules = array('user_password' => array('reqd' => 'Please provide a password', 'min[6]' => 'Your selected password must be at least 6 characters')); $validation = $Validate->run($_REQUEST, $rules); if (is_array($validation)) { return Redirect::route('Password')->with('validation', $validation); } if ($_REQUEST['user_password'] != $_REQUEST['confirm_user_password']) { return Redirect::back()->with('error', 'The two passwords did not match. Please try again.'); } $this_user = Session::get('user'); $this_user = array_pop($this_user); $this_user = (array) $this_user; //pre('first password is ' . $this_user['user_password']); $this_user['user_password'] = $_REQUEST['user_password']; //pre('changed to raw ' . $this_user['user_password']); User::addUserOfType($this_user); return Redirect::to('redirect'); }