mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
25 lines
581 B
PHP
25 lines
581 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Contracts\Users;
|
|
|
|
use Pterodactyl\Models\User;
|
|
use Throwable;
|
|
|
|
interface CreatesUsers
|
|
{
|
|
/**
|
|
* Create a new user on the system. When no password is provided a random one is
|
|
* set and a password reset token is generated for the account welcome email.
|
|
*
|
|
* The UUID and password hash are handled by the model itself (HasVersion4Uuids
|
|
* and the hashed password cast).
|
|
*
|
|
* @param ModelAttributes $data
|
|
*
|
|
* @throws Throwable
|
|
*/
|
|
public function create(array $data): User;
|
|
}
|