\Pivot\Authentication\AdaptorsDatabaseAdaptor

Database Adaptor compairs the bcrypted password in identity to the supplied raw password.

Summary

Methods
Properties
Constants
authenticate()
encrypt()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

authenticate()

authenticate(array  $credentials, \Pivot\Authentication\Adaptors\PossibleIdentity  $possibleIdentity) : boolean

Performs a $bcrypt->verify on the supplied credentials/identity

Parameters

array $credentials

$credentials->password expected

\Pivot\Authentication\Adaptors\PossibleIdentity $possibleIdentity

Pivot\Authentication\Identity\PossibleIdentity

Returns

boolean —

Is the passowrd valid

encrypt()

encrypt(string  $plainPassword) : string

Encrypts the supplied password

Parameters

string $plainPassword

plain password

Returns

string —

encrypted password