jeudi 30 mars 2017

Laravel Login always return false due to getAuthPassword return null

As per my title mentioned. I can't use auth()->attempt($credentials, false) as it always return false.

After further digging in to the problem, finally found that it was due to this.

public function validateCredentials(UserContract $user, array $credentials)
    {
        $plain = $credentials['password'];

        return $this->hasher->check($plain, $user->getAuthPassword());
    }

the $user->getAuthPassword() return null even though the $user have password on the original while I dump it out

Does anybody know how this getAuthPassword() work?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2nzGawO
via IFTTT

Aucun commentaire:

Enregistrer un commentaire