Step 9: Edit app/config/simpleauth.php and change the tablename to 'users'
return array( 'groups' => array( -1 => array('name' => 'Banned', 'roles' => array('banned')), 0 => array('name' => 'Guests', 'roles' => array()), 1 => array('name' => 'Users', 'roles' => array('user')), 50 => array('name' => 'Moderators', 'roles' => array('user', 'moderator')), 100 => array('name' => 'Administrators', 'roles' => array('user', 'moderator', 'admin')), ), 'roles' => array( '#' => array('website' => 'r'), // default rights 'banned' => false, 'user' => array('comments' => 'cr'), 'moderator' => array('comments' => 'ud'), 'admin' => array('website' => 'cud', 'admin' => 'crud'), 'super' => true, ), );
if (count($uri_string)>1 and $uri_string[0] == 'users' and ($uri_string[1] == 'login' or $uri_string[1] == 'signup'))
drifitz drifitz wrote on 02/27/11 2:20 am:...
I have some questions though, I see you're extending the auth drivers and placed it in app/classes. Why?
drifitz drifitz wrote on 02/27/11 2:20 am:I see you're also doing
if (count($uri_string)>1 and $uri_string[0] == 'users' and ($uri_string[1] == 'login' or $uri_string[1] == 'signup'))
Shouldn't you be using the Request class instead of accessing the uri directly?
if($this->request->controller == 'users' && ($this->request->action == 'login' or $this->request->action == 'signup'))
It looks like you're new here. If you want to get involved, click one of these buttons!