Hora v1.0.0 Hora.Changeset

Utility functions for working with Ecto.Changeset.

Link to this section Summary

Functions

Modifies the changeset by adding a secure password if a change to the password has been made

Link to this section Functions

Link to this function put_secure_password(changeset, password_field_name, crypted_password_field_name, opts \\ [])
put_secure_password(Ecto.Changeset.t, atom, atom, list) :: Ecto.Changeset.t

Modifies the changeset by adding a secure password if a change to the password has been made.

Example

changeset
|> Hora.Changeset.put_secure_password(:password, :password_digest)