Initial baseline: LaraBlog core with plugin commerce surface.
Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
class LegacyPassword
|
||||
{
|
||||
public static function verify(string $plain, string $legacyHash): bool
|
||||
{
|
||||
return hash_equals($legacyHash, md5($plain));
|
||||
}
|
||||
|
||||
public static function upgradeHash(string $plain): string
|
||||
{
|
||||
return Hash::make($plain);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user