Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problemas com Auth... nao funciona da forma esperada. #185

Open
emersonandre opened this issue Dec 11, 2018 · 1 comment
Open

Problemas com Auth... nao funciona da forma esperada. #185

emersonandre opened this issue Dec 11, 2018 · 1 comment

Comments

@emersonandre
Copy link

emersonandre commented Dec 11, 2018

Descrição Geral do Problema

Problema Encontrado

tenho minha function abaixo, ja realizei os testes com os dados da tabela usando eloquent e funciona normalmente... porem no script abaixo ele diz que o usario e senha estão incorretos. alguem pode me ajudar com oque pode estar acontecendo ?


`public function login(){
$email = Request::input('email');
$password = Request::input('password');

    if (Auth::attempt(['email' => $email, 'password' => $password])) {
        return "Usuário NOME logado com sucesso";
    }else {
        return "As credencias não são válidas";
    }

}

`

@romulo2735
Copy link

Usa a Negaçao no Attempt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants