NAME
Articulate::Authentication::Internal
METHODS
authenticate
$self
->authenticate(
$credentials
);
Accepts and returns the credentials if the password
matches the user_id
. Always returns the credentials passed in.
verify_password
$self
->verify_password(
$user_id
,
$password
);
Hashes the password provided with the user's salt and checks to see if the string matches the encrypted password in the user's meta.
Returns the result of eq
.
set_password
$self
->set_password(
$user_id
,
$password
);
Creates a new pseudorandom salt and uses it to hash the password provided.
Amends the encrypted_password
and salt
fields of the user's meta.
create_user
$self
->create_user(
$user_id
,
$password
);
Creates a new user and sets the encrypted_password
and salt
fields of the user's meta.