We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea8798f commit 2e5dc05Copy full SHA for 2e5dc05
src/Console/HashCommand.php
@@ -3,7 +3,6 @@
3
namespace Laravel\Passport\Console;
4
5
use Illuminate\Console\Command;
6
-use Illuminate\Support\Str;
7
use Laravel\Passport\Passport;
8
9
class HashCommand extends Command
@@ -39,7 +38,7 @@ public function handle()
39
38
$model = Passport::clientModel();
40
41
foreach ((new $model)->whereNotNull('secret')->cursor() as $client) {
42
- if (Str::startsWith($client->secret, '$2y')) {
+ if (password_get_info($client->secret)['algo'] === PASSWORD_BCRYPT) {
43
continue;
44
}
45
0 commit comments