Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 730ab3d

Browse files
committed
Working on implementing events.
1 parent 535b717 commit 730ab3d

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
namespace Adldap\Laravel\Events;
4+
5+
use Adldap\Models\User;
6+
use Illuminate\Contracts\Auth\Authenticatable;
7+
8+
class AuthenticatedWithCredentials
9+
{
10+
/**
11+
* The authenticated LDAP user.
12+
*
13+
* @var User
14+
*/
15+
public $user;
16+
17+
/**
18+
* The authenticated LDAP users model.
19+
*
20+
* @var Authenticatable
21+
*/
22+
public $model;
23+
24+
/**
25+
* Constructor.
26+
*
27+
* @param User $user
28+
* @param Authenticatable $model
29+
*/
30+
public function __construct(User $user, Authenticatable $model)
31+
{
32+
$this->user = $user;
33+
$this->model = $model;
34+
}
35+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
namespace Adldap\Laravel\Events;
4+
5+
use Adldap\Models\User;
6+
7+
class DiscoveredWithCredentials
8+
{
9+
/**
10+
* The discovered LDAP user before authentication.
11+
*
12+
* @var User
13+
*/
14+
public $user;
15+
16+
/**
17+
* Constructor.
18+
*
19+
* @param User $user
20+
*/
21+
public function __construct(User $user)
22+
{
23+
$this->user = $user;
24+
}
25+
}

0 commit comments

Comments
 (0)