I have use SHA1 hash for password like this https://arjunphp.com/laravel-5-sha1-encryption-instead-of-bcrypt/
Now i am using passport API to create token but it is not allowing me to create token as the hasher is changed now.
Symfony\Component\Debug\Exception\FatalThrowableError: Argument 1 passed to Laravel\Passport\Bridge\UserRepository::__construct() must be an instance of Illuminate\Hashing\HashManager, instance of App\Libraries\ShaHash\SHAHasher given in file C:\xampp1\htdocs\coursekartv2\vendor\laravel\passport\src\Bridge\UserRepository.php on line 26
Any help, how can i override UserRepository to use SHAHasher insted of HashManager. Or any other help to overcome this issue.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire