Documentation

GenerateRecoveryCode

Issue and persist a new recovery code for a user.

Tags
since
3.1.2

Table of Contents

Properties

$recoveryCodes  : RecoveryCodeService
$repository  : UserRepositoryInterface

Methods

__construct()  : mixed
execute()  : string
Generate, store, and return a new recovery code (plaintext, shown once).

Properties

Methods

execute()

Generate, store, and return a new recovery code (plaintext, shown once).

public execute(User $user) : string
Parameters
$user : User

The user to issue a code for.

Return values
string

The plaintext recovery code to display to the user.


        
On this page

Search results