$input */ public function reset(User $user, array $input): void { if ($user->isMapledeployRevoked()) { // MapleDeploy branding: dashboard-managed revocation is restored only by mapledeploy:user:set-password. throw ValidationException::withMessages([ 'email' => [trans('passwords.user')], ]); } Validator::make($input, [ 'password' => ['required', Password::defaults(), 'confirmed'], ])->validate(); $user->fill([ 'password' => Hash::make($input['password']), ])->save(); $user->deleteAllSessions(); } }