-
Notifications
You must be signed in to change notification settings - Fork 86
Closed
Description
Problem
We need to define reset_password_changeset(struct, params) on User
- casts
:passwordand:password_confirmation - validates that the two are equal
- if valid, encrypts the password and puts it as
:encrypted_passwordinto the changeset - if invalid, should add an error
- we can make use of
User.put_pass_hashto achieve parts of this - we probably need to add a virtual
:password_confirmationfield to the user schema
References
Progress on: #498