First release
This commit is contained in:
22
src/Events/CredentialCloned.php
Normal file
22
src/Events/CredentialCloned.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Laragear\WebAuthn\Events;
|
||||
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Laragear\WebAuthn\Models\WebAuthnCredential;
|
||||
|
||||
class CredentialCloned
|
||||
{
|
||||
use Dispatchable;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param \Laragear\WebAuthn\Models\WebAuthnCredential $credential
|
||||
* @param int $reportedCount The counter reported by the user authenticator.
|
||||
*/
|
||||
public function __construct(public WebAuthnCredential $credential, public int $reportedCount)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
23
src/Events/CredentialCreated.php
Normal file
23
src/Events/CredentialCreated.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Laragear\WebAuthn\Events;
|
||||
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Laragear\WebAuthn\Contracts\WebAuthnAuthenticatable;
|
||||
use Laragear\WebAuthn\Models\WebAuthnCredential;
|
||||
|
||||
class CredentialCreated
|
||||
{
|
||||
use Dispatchable;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param \Laragear\WebAuthn\Contracts\WebAuthnAuthenticatable $user
|
||||
* @param \Laragear\WebAuthn\Models\WebAuthnCredential $credential
|
||||
*/
|
||||
public function __construct(public WebAuthnAuthenticatable $user, public WebAuthnCredential $credential)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
21
src/Events/CredentialDisabled.php
Normal file
21
src/Events/CredentialDisabled.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Laragear\WebAuthn\Events;
|
||||
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Laragear\WebAuthn\Models\WebAuthnCredential;
|
||||
|
||||
class CredentialDisabled
|
||||
{
|
||||
use Dispatchable;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param \Laragear\WebAuthn\Models\WebAuthnCredential $credential
|
||||
*/
|
||||
public function __construct(public WebAuthnCredential $credential)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
21
src/Events/CredentialEnabled.php
Normal file
21
src/Events/CredentialEnabled.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Laragear\WebAuthn\Events;
|
||||
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Laragear\WebAuthn\Models\WebAuthnCredential;
|
||||
|
||||
class CredentialEnabled
|
||||
{
|
||||
use Dispatchable;
|
||||
|
||||
/**
|
||||
* Create a new event instance.
|
||||
*
|
||||
* @param \Laragear\WebAuthn\Models\WebAuthnCredential $credential
|
||||
*/
|
||||
public function __construct(public WebAuthnCredential $credential)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user