Hora v1.0.0 Hora.Adapter.Bcrypt

Adapter for managing passwords using bcrypt.

Note that you will need to add comeonin as a dependency to your project in order to use this adapter.

Options

Link to this section Summary

Functions

Initializes the adapter

Secures the password. This will most likely be by either hashing or encrypting the password provided

Verifies that the plain text password and the secure password match

Link to this section Functions

Initializes the adapter.

The options returned from this function will be given to verify_password/3 and secure_password/2.

Callback implementation for Hora.Adapter.init/1.

Link to this function secure_password(password, opts)

Secures the password. This will most likely be by either hashing or encrypting the password provided.

Callback implementation for Hora.Adapter.secure_password/2.

Link to this function verify_password(password, secured_password, opts)

Verifies that the plain text password and the secure password match.

Callback implementation for Hora.Adapter.verify_password/3.