I was trying your amazing library and I have noted that the "secure" example was not working. I don't know if this has been commented yet but then I put my effort to solve the problem.
I have added a new protected function inside the redux_auth_db class basing on the _get_group() one's.
And then, in the redux_auth class, I have added this:
Code:
/**
* get_username
*
* @access public
* @param string $id Users id
* @return string
*/
public function get_username($id) {return $this->_get_username($this->users_table, $id); }
Also, in the user.php example, the $data1['group'] variable was commented and pointing to $this->redux_auth->get_group();. Looking in the get_group() function I've seen that it's extremely necessary pass the ID to get the group and not the e-mail and the the simple change for: