Documentation

VerifyEmail

Use case for verifying a user's email address via token.

Tags
since
3.0.0

Table of Contents

Properties

$repository  : UserRepositoryInterface
$tokenHasher  : TokenHasher

Methods

__construct()  : mixed
execute()  : User|null
Verify email using the provided plaintext token.

Properties

Methods

execute()

Verify email using the provided plaintext token.

public execute(string $plaintextToken) : User|null
Parameters
$plaintextToken : string

The token from the verification URL

Return values
User|null

The verified user, or null if token is invalid/expired


        
On this page

Search results