Files

23 lines
609 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 UpdatesUsers
{
/**
2026-10-11 23:50:53 -04:00
* 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.
2026-10-11 06:31:11 -04:00
*
2026-10-11 19:54:55 -04:00
* @param array<string, mixed> $input any of the fields a user is created with
2026-10-05 18:10:18 -04:00
*
* @throws Throwable
*/
2026-10-11 06:31:11 -04:00
public function update(User $user, array $input): User;
2026-10-05 18:10:18 -04:00
}