FacturaScripts

PasswordTrait

Description of InvoiceTrait

Table of Contents

$newPassword New password. string
$newPassword2 Repeated new password. string
$password Password hashed with password_hash() string
primaryColumnValue() mixed
toolBox() mixed
setPassword() Asigns the new password to the user. mixed
verifyPassword() Verifies password. It also rehash the password if needed. bool
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

toolBox()

protected abstract static toolBox( ) : mixed
Return values
mixed

setPassword()

Asigns the new password to the user.

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

verifyPassword()

Verifies password. It also rehash the password if needed.

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

testPassword()

protected testPassword( ) : bool
Return values
bool

Search results