Created
December 14, 2015 13:24
-
-
Save janjiss/aa422f9931a248470082 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def set_password_digest(changeset) do | |
| password = Ecto.Changeset.get_field(changeset, :password) | |
| change(changeset, %{password_digest: crypt_password(password)}) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment