Hora v0.1.0 Hora.Adapter behaviour

Specifies the API an adapter is required to implement.

Summary

Callbacks

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

Callbacks

init(arg0)
init(Hora.opts) :: Hora.opts

Initializes the adapter.

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

secure_password(arg0, arg1)
secure_password(String.t, Hora.opts) :: String.t

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

verify_password(arg0, arg1, arg2)
verify_password(String.t, String.t, Hora.opts) :: boolean

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