Welcome Guest, Not a member yet? Register   Sign In
flexi auth - A user authentication library for CodeIgniter

[eluser]NotSmilie[/eluser]
Okay, so I solved my problems by migrating the two databases.
My backend uses a different session table than the front-end does. The two logins are in no way affiliated, I just want to edit users via the backend, such as username, password, email, credits (custom field) etc.. I suppose it doesn't need the "real" session data for that?


Regrettable I face this error now:
A PHP Error was encountered
Severity: Warning
Message: Creating default object from empty value
Filename: models/flexi_auth_lite_model.php
Line Number: 47

This is my class:

Code:
<?php

class User extends CI_Controller {

    public function __construct()
    {
        parent::__construct();

        $this->load->library('flexi_auth');
    }

    function index() {
        $this->userlist();
    }

    function userlist() {

        if (!$this->general->isLoggedIn()) {
            header('Refresh: 0; url=' . base_url("login") . '');
            die();
        }

        if (!$this->general->checkAccess("users")) {
            header('Refresh: 0; url=' . base_url("denied") . '');
            die();
        }

        $data['query'] = $this->db
            ->get('user_accounts');

        $data['page'] = 'user';
        $view = $this->load->view('user/userlist', $data, TRUE);
        $this->template->create_page('User', $view);
    }
}

?>

Edit:
Nevermind, forgot this: $this->auth = new stdClass;


Messages In This Thread
flexi auth - A user authentication library for CodeIgniter - by El Forum - 03-06-2013, 06:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB