ksungcaya / phpass-laravel Goto Github PK
View Code? Open in Web Editor NEWPHPass Hashing integration to Laravel 5
PHPass Hashing integration to Laravel 5
Hello - thanks for your work on this!
I'm trying to integrate this into a brand new Laravel project (currently v5.7.25), but am not able to get the default Auth framework to use Phpass - it's still returning the bcrypt hash from the Hash:: calls.
Steps to reproduce:
Expected result:
Laravel auth uses Phpass encryption for password, login fails
Actual result:
Laravel auth uses default bcrypt encryption for password, login succeeds
Any ideas would be much appreciated!
I can not install this package in L5.3.
In laravel 5.1.11 authorization was introduced, but it is not working alongside with this package. When i try to authorize anything i am getting this exception
InvalidArgumentException thrown with message "Driver [phpass] not supported."
Stacktrace:
#21 InvalidArgumentException in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Support\Manager.php:90
#20 Illuminate\Support\Manager:createDriver in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Auth\AuthManager.php:18
#19 Illuminate\Auth\AuthManager:createDriver in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Support\Manager.php:63
#18 Illuminate\Support\Manager:driver in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Support\Manager.php:137
#17 Illuminate\Support\Manager:__call in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Auth\AuthServiceProvider.php:68
#16 Illuminate\Auth\AuthManager:user in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Auth\AuthServiceProvider.php:68
#15 Illuminate\Auth\AuthServiceProvider:Illuminate\Auth\{closure} in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Container\Container.php:733
#14 Illuminate\Container\Container:build in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Container\Container.php:626
#13 Illuminate\Container\Container:make in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:674
#12 Illuminate\Foundation\Application:make in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Container\Container.php:572
#11 Illuminate\Container\Container:addDependencyForCallParameter in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Container\Container.php:532
#10 Illuminate\Container\Container:getMethodDependencies in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Container\Container.php:500
#9 Illuminate\Container\Container:call in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:734
#8 Illuminate\Foundation\Application:bootProvider in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:717
#7 Illuminate\Foundation\Application:Illuminate\Foundation\{closure} in <#unknown>:0
#6 array_walk in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:718
#5 Illuminate\Foundation\Application:boot in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\BootProviders.php:17
#4 Illuminate\Foundation\Bootstrap\BootProviders:bootstrap in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:203
#3 Illuminate\Foundation\Application:bootstrapWith in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:222
#2 Illuminate\Foundation\Http\Kernel:bootstrap in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:117
#1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in C:\wamp\www\pindex\ver1\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:87
#0 Illuminate\Foundation\Http\Kernel:handle in C:\wamp\www\pindex\ver1\public\index.php:54
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.