align backend auth patterns

This commit is contained in:
Yisroel Baum 2026-08-02 20:57:25 +03:00
parent b3266b38c8
commit 299efe0839
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
23 changed files with 249 additions and 142 deletions

View file

@ -0,0 +1,16 @@
<?php
namespace App\Auth;
class BcryptPasswordHasher implements PasswordHasher
{
public function hash(string $password): string
{
return password_hash($password, PASSWORD_DEFAULT);
}
public function verify(string $password, string $hash): bool
{
return password_verify($password, $hash);
}
}