How to choose an authentication library for CodeIgniter: experience and comparison
Hi everyone! I'm new to PHP and CodeIgniter, and I'm currently writing my first project — a small blog with an admin panel. I've run into the problem of choosing an authentication library. The CodeIgniter 3 documentation doesn't have a built-in login/registration system, only sessions and password hashing.\n\nI've already written a simple system myself, but it looks amateurish:\n\n```php\n// My current "system" in the Auth controller\npublic function login() {\n $this->load->model('user_model');\n $user = $this->user_model->get_by_email($this->input->post('email'));\n if ($user && password_verify($this->input->post('password'), $user->password)) {\n $this->session->set_userdata('user_id', $user->id);\n redirect('admin');\n } else {\n $data['error'] = 'Invalid login or password';\n $this->load
No answers yet.
Log in to leave an answer