diff --git a/application/controllers/User.php b/application/controllers/User.php index de70bee62..e84e3f588 100644 --- a/application/controllers/User.php +++ b/application/controllers/User.php @@ -763,7 +763,7 @@ class User extends CI_Controller { } } - function login() { + function login($firstlogin = false) { // Check our version and run any migrations if (!$this->load->is_loaded('Migration')) { $this->load->library('Migration'); @@ -773,6 +773,10 @@ class User extends CI_Controller { } $this->migration->current(); + if($firstlogin == true) { + $this->session->set_flashdata('success', __("Congrats! Wavelog was successfully installed. You can now login for the first time.")); + } + $this->load->model('user_model'); $query = $this->user_model->get($this->input->post('user_name', true));