FacturaScripts

PasswordTrait

Description of InvoiceTrait

Tags
author

Carlos García Gómez [email protected]

Table of Contents

$newPassword  : string
New password.
$newPassword2  : string
Repeated new password.
$password  : string
Password hashed with password_hash()
primaryColumnValue()  : mixed
setPassword()  : mixed
Assigns the new password to the user.
verifyPassword()  : bool
Verifies password. It also rehash the password if needed.
testPassword()  : bool

Properties

$newPassword2

Repeated new password.

public string $newPassword2

$password

Password hashed with password_hash()

public string $password

Methods

primaryColumnValue()

public abstract primaryColumnValue() : mixed
Return values
mixed

setPassword()

Assigns the new password to the user.

public setPassword(string $value) : mixed
Parameters
$value : string
Return values
mixed

verifyPassword()

Verifies password. It also rehash the password if needed.

public verifyPassword(string $value) : bool
Parameters
$value : string
Return values
bool

testPassword()

protected testPassword() : bool
Return values
bool

Search results