Arikaim CMS

Password

Password trait Change password attribute name in model: protected $passwordColumn = 'password'; Chage encrypth algo: protected $passwordEncryptAlgo = algo | null

Table of Contents

Methods

changePassword()  : bool
Change password
encryptPassword()  : string
Encrypt password
getEncryptPasswordAlgo()  : mixed
Return encrypt algo
getPassword()  : string
Get password
getPasswordAttributeName()  : string
Return password attribute name
verifyPassword()  : bool
Return true if password is correct.

Methods

changePassword()

Change password

public changePassword(string|int $id, string $password) : bool
Parameters
$id : string|int
$password : string
Return values
bool

encryptPassword()

Encrypt password

public encryptPassword(string $password[, int $algo = null ]) : string
Parameters
$password : string
$algo : int = null
Return values
string

getEncryptPasswordAlgo()

Return encrypt algo

public getEncryptPasswordAlgo() : mixed

getPassword()

Get password

public getPassword() : string
Return values
string

getPasswordAttributeName()

Return password attribute name

public getPasswordAttributeName() : string
Return values
string

verifyPassword()

Return true if password is correct.

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

        
On this page

Search results