playlist unique au compte connecté
This commit is contained in:
@@ -9,9 +9,9 @@ class Connexion extends CI_Controller{
|
||||
$this->load->model('model_music');
|
||||
}
|
||||
public function index(){
|
||||
$this->load->view('layout/header');
|
||||
//$this->load->view('layout/header');
|
||||
$this->load->view('login');
|
||||
$this->load->view('layout/footer');
|
||||
//$this->load->view('layout/footer');
|
||||
}
|
||||
public function login() {
|
||||
|
||||
@@ -26,10 +26,11 @@ class Connexion extends CI_Controller{
|
||||
$result = $this->model_music->getLogin($login,$password);
|
||||
if (count($result) > 0) {
|
||||
$this->session->set_userdata('logged', true);
|
||||
$this->session->set_userdata('mail', $login);
|
||||
$this->load->view('layout/header');
|
||||
redirect('albums');
|
||||
} else {
|
||||
$this->load->view('layout/header');
|
||||
//$this->load->view('layout/header');
|
||||
$this->load->view('login');
|
||||
$this->load->view('layout/footer');
|
||||
echo "Invalid login or password";
|
||||
|
||||
Reference in New Issue
Block a user