From 24dad594e1158a7f576d68194d94a37bf4b24bdb Mon Sep 17 00:00:00 2001 From: Ben Edmunds Date: Thu, 26 Jul 2012 10:38:33 -0400 Subject: [PATCH] Added consistentcy to flashdata messages (via pnyjeff). Resolves issue #272 --- controllers/auth.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/auth.php b/controllers/auth.php index 4115b310b..495dee1e2 100644 --- a/controllers/auth.php +++ b/controllers/auth.php @@ -15,6 +15,8 @@ function __construct() $this->load->library('mongo_db') : $this->load->database(); + + $this->form_validation->set_error_delimiters($this->config->item('error_start_delimiter', 'ion_auth'), $this->config->item('error_end_delimiter', 'ion_auth')); } //redirect if needed, otherwise display the user list @@ -407,7 +409,7 @@ function create_user() { //check to see if we are creating the user //redirect them back to the admin page - $this->session->set_flashdata('message', "User Created"); + $this->session->set_flashdata('message', $this->ion_auth->messages()); redirect("auth", 'refresh'); } else