Add user avatar system and fix WHOIS parsing/cron synchronization

- Add avatar upload with Gravatar fallback and initials
- Fix false "available" detection for registered domains
- Clean up WHOIS status parsing and server display
- Update cron job to sync all WHOIS fields
- Fix TLD cache and .me domain parsing issues
This commit is contained in:
Hosteroid
2025-10-27 18:13:38 +02:00
parent bbb1be1cf5
commit 67bacc36e3
15 changed files with 1060 additions and 45 deletions

View File

@@ -39,7 +39,7 @@ class User extends Model
/**
* Create user with hashed password
*/
public function createUser(string $username, string $password, ?string $email = null, ?string $fullName = null): int
public function createUser(string $username, string $password, ?string $email = null, ?string $fullName = null, ?string $avatar = null): int
{
$hashedPassword = password_hash($password, PASSWORD_DEFAULT);
@@ -48,6 +48,7 @@ class User extends Model
'password' => $hashedPassword,
'email' => $email,
'full_name' => $fullName,
'avatar' => $avatar,
'is_active' => 1
]);
}