mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-01 11:55:51 -05:00
23 lines
609 B
PHP
23 lines
609 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Contracts\Users;
|
|
|
|
use Pterodactyl\Models\User;
|
|
use Throwable;
|
|
|
|
interface UpdatesUsers
|
|
{
|
|
/**
|
|
* Pass a new password in plain text; the model hashes it. The input is validated here, only
|
|
* the fields given are changed, and a blank password leaves the password alone. Extension
|
|
* field values go under `extensions` as ValidatedExtensionValues.
|
|
*
|
|
* @param array<string, mixed> $input any of the fields a user is created with
|
|
*
|
|
* @throws Throwable
|
|
*/
|
|
public function update(User $user, array $input): User;
|
|
}
|