HumHub Documentation (unofficial)

PasswordRecoveryService
in package

Table of Contents

Constants

LIMIT_EMAIL_SEND_TIME  = 10 * 60
SETTING_TOKEN  = 'passwordRecoveryToken'
TOKEN_MAX_LIFE_TIME  = 24 * 60 * 60

Properties

$user  : User

Methods

__construct()  : mixed
checkToken()  : bool
Check the request token is valid for the User
getSavedToken()  : array<string|int, mixed>|null
isLimited()  : bool
Check if email sending is limited with 10 minute pause
reset()  : bool
Reset a password with checking a provided token
sendRecoveryInfo()  : bool
Sends a message with recovery info by e-mail

Constants

Properties

Methods

checkToken()

Check the request token is valid for the User

public checkToken(string|null $token) : bool
Parameters
$token : string|null
Return values
bool

getSavedToken()

public getSavedToken() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

isLimited()

Check if email sending is limited with 10 minute pause

public isLimited() : bool
Return values
bool

sendRecoveryInfo()

Sends a message with recovery info by e-mail

public sendRecoveryInfo() : bool
Return values
bool

        
On this page

Search results