Ctrl K
ComunidadGuías…

src/events/LoginFailureEvent.php

Rama 5.x · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
<?php
/**
 * @link https://craftcms.com/
 * @copyright Copyright (c) Pixel & Tonic, Inc.
 * @license https://craftcms.github.io/license/
 */

namespace craft\events;

use craft\base\Event;
use craft\elements\User;

/**
 * LoginFailureEvent class.
 *
 * @author Pixel & Tonic, Inc. <support@pixelandtonic.com>
 * @since 3.0.0
 */
class LoginFailureEvent extends Event
{
    /**
     * @var string|null The authentication error key, if the reason is known.
     * @see User
     */
    public ?string $authError = null;

    /**
     * @var string The error message that will be presented to the user.
     */
    public string $message;

    /**
     * @var User|null The user that the login was attempted for, if there was a username/email match
     */
    public ?User $user = null;
}