Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ███████████████████ METODO DE LOGIN ███████████████████*/
- public function fazer_login($cliente, $senha){
- try{
- if($this->validar_senha($cliente, $senha) === true){
- $query = "SELECT * FROM clientes WHERE email = :email";
- $this->Select = $this->Conn->prepare($query);
- $this->Select->BindValue(':email', $cliente->getEmail(), PDO::PARAM_STR);
- $this->Select->execute();
- if($this->Select->rowCount() == 1){
- return $this->Select->fetch(PDO::FETCH_ASSOC);
- }else{
- return false;
- }
- }else{
- return "Senha Invalida!";
- }
- } catch (PDOException $ex) {
- exibeMensagens($Msg, $ErrNo);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement