Hora v0.1.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

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

Functions

init(opts)

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.

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.

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.