Files

23 lines
664 B
PHP
Raw Permalink Normal View History

2026-10-05 18:10:18 -04:00
<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Users;
use Pterodactyl\Models\User;
use Throwable;
interface CreatesUsers
{
/**
2026-10-11 23:50:53 -04:00
* A user given no password gets a random one and a password reset token for the welcome
* email. Pass a password in plain text; the model hashes it. The input is validated here.
* Extension field values go under `extensions` as ValidatedExtensionValues.
2026-10-11 06:31:11 -04:00
*
2026-10-11 19:54:55 -04:00
* @param array<string, mixed> $input email, username, name_first, name_last, and optionally external_id, password, root_admin and language
2026-10-05 18:10:18 -04:00
*
* @throws Throwable
*/
2026-10-11 06:31:11 -04:00
public function create(array $input): User;
2026-10-05 18:10:18 -04:00
}