Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2
#7

[eluser]betabeta[/eluser]
Hi Ben,

A couple more for you to fix activation emails:

controller/auth.php

Line 211 to 213:
// delete lines because new users are the ones that need to create accounts
Code:
if (!$this->ion_auth->logged_in() || !$this->ion_auth->is_admin()) {
    redirect('auth', 'refresh');
}


libraries/Ion_auth.php

Line 203:
// deactivate takes $id instead of $username
Code:
$deactivate = $this->ci->ion_auth_model->deactivate($register);
Line 212:
// need to add ->row() or else can't get properties for email
Code:
$user            = $this->ci->ion_auth_model->get_user($register)->row();


Also it's weird to me that session vars are set in the model but deleted in the library.


I hope this is helpful.


EDIT: The activation email bugs mention here were resolved in the source as of 2010 Feb 13. Thanks.


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 02-12-2010, 01:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB