feat(auth): registration and login

This commit is contained in:
2026-02-21 08:29:53 +01:00
parent 795c7a835f
commit 4fb95c872b
16 changed files with 133 additions and 130 deletions

View File

@@ -15,6 +15,7 @@ class AvatarUrl
}
$avatarHash = $hash ?: self::resolveHash($userId);
if (!$avatarHash) {
return self::default();
}
@@ -30,7 +31,9 @@ class AvatarUrl
public static function default(): string
{
return asset('img/default-avatar.webp');
$base = rtrim((string) config('cdn.avatar_url', 'https://files.skinbase.org'), '/');
return sprintf('%s/avatars/default.webp', $base);
}
private static function resolveHash(int $userId): ?string