Slide 6
Slide 6 text
AUTHORIZATION
Validating and persisting User
▸ Add Validations to User model
We are now at a point where we can submit a form, but still have errors.
Now we are dealing with passwords, we need to do some work.
We need a password hashing library, let’s use: https://github.com/riverrun/comeonin
Add comeonin to mix.exs file, then run mix.deps.get. We can then implement our password function like we have below