Skip to content

Commit

Permalink
Update mlogin.php
Browse files Browse the repository at this point in the history
Correção no join das tabelas perfil e usuário. 
Contribuição dada pelo "Gerson Rodrigues Filho" ([email protected]).
  • Loading branch information
marcosvpinto committed Feb 6, 2014
1 parent 7a98b3c commit 8092da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/mlogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function validate(){
$this->db->where('login', $username);
$this->db->where('senha', $password);

$this->db->join('perfil', 'perfil.nivel = usuario.perfil');
$this->db->join('perfil', 'perfil.id_perfil = usuario.perfil');
$this->db->join('setor', 'setor.id_setor = usuario.setor');

$query = $this->db->get('usuario');
Expand Down

0 comments on commit 8092da1

Please sign in to comment.