完善首页邮箱找回密码流程
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Notifications\ResetUserPasswordNotification;
|
||||
use Illuminate\Database\Eloquent\Casts\Attribute;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
@@ -168,6 +169,14 @@ class User extends Authenticatable
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送邮箱找回密码通知。
|
||||
*/
|
||||
public function sendPasswordResetNotification(#[\SensitiveParameter] $token): void
|
||||
{
|
||||
$this->notify(new ResetUserPasswordNotification($token));
|
||||
}
|
||||
|
||||
/**
|
||||
* 关联:用户所属的 VIP 会员等级
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user