2016-10-17 17:51:51 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Events;
|
|
|
|
|
|
|
|
use App\Models\User;
|
|
|
|
|
2016-11-05 20:11:48 +08:00
|
|
|
class EncryptUserPassword extends Event
|
2016-10-17 17:51:51 +08:00
|
|
|
{
|
|
|
|
public $user;
|
|
|
|
|
2019-03-30 11:54:24 +08:00
|
|
|
public $rawPasswd;
|
2018-02-16 16:25:35 +08:00
|
|
|
|
2016-10-17 17:51:51 +08:00
|
|
|
/**
|
|
|
|
* Create a new event instance.
|
|
|
|
*
|
2019-03-30 11:54:24 +08:00
|
|
|
* @param string $rawPasswd
|
2018-02-16 16:25:35 +08:00
|
|
|
* @param User $user
|
2016-10-17 17:51:51 +08:00
|
|
|
* @return void
|
|
|
|
*/
|
2019-03-30 11:54:24 +08:00
|
|
|
public function __construct($rawPasswd, User $user)
|
2016-10-17 17:51:51 +08:00
|
|
|
{
|
2019-03-30 11:54:24 +08:00
|
|
|
$this->rawPasswd = $rawPasswd;
|
2016-10-17 17:51:51 +08:00
|
|
|
$this->user = $user;
|
|
|
|
}
|
|
|
|
}
|