mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-21 06:19:38 +08:00
e2b4153dab
Ref: #14
26 lines
420 B
PHP
26 lines
420 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use App\Models\User;
|
|
|
|
class EncryptUserPassword extends Event
|
|
{
|
|
public $user;
|
|
|
|
public $raw;
|
|
|
|
/**
|
|
* Create a new event instance.
|
|
*
|
|
* @param string $raw The raw password before encrypted.
|
|
* @param User $user
|
|
* @return void
|
|
*/
|
|
public function __construct($raw, User $user)
|
|
{
|
|
$this->raw = $raw;
|
|
$this->user = $user;
|
|
}
|
|
}
|