Ben,
Great library/solution. After updating to your most recent code on Github (commit_id: 18e39bd1), I noticed after login that I was redirected to http://my.domain.com// (<—-notice the extra slash).
The base_url in my config is a sub-domain, don’t know if that mattered any but doubt it.
Anyway, I switched my code in the app/controllers/auth.php to the following:
...controllers/auth.php
//log the user in
function login()
{
$this->data['title'] = "Login";
$redirect_uri_successful_login = $this->config->item('base_url',TRUE);
//validate form input
$this->form_validation->set_rules('email', 'Email Address', 'required|valid_email');
$this->form_validation->set_rules('password', 'Password', 'required');
if ($this->form_validation->run() == true) { //check to see if the user is logging in
if ($this->ion_auth->login($this->input->post('email'), $this->input->post('password'))) { //if the login is successful
//redirect them back to the home page
$this->session->set_flashdata('message', "Logged In Successfully");
redirect($redirect_uri_successful_login, 'refresh');
...
I’m thinking you could set this in your ion_auth.php in the config folder?