feat(auth): registration and login
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user