Open gabrielalmeida opened 9 years ago
@gabrielalmeida thanks for your support, and sorry about the delay .... normally i can register and activate my account, then i'm trying to reset the password .... after getting an email contain that link to update my password ... and after entering the new password twice and submit ! i'm getting "validation.required" message .....
please let me know if you need me to share some files, codes ?
thanks again, appreciate it.
Hi @megadola, apologize for the long delay.
I couldn't reproduce your error message but the PR was broken and I've just updated it. If you still need to get it working, take a look now.
Relates to #482
Password reset is validated by the same ruleset that any regular update is. It's going to fail everytime because instead of sending the required fields for
update
ruleset validation, it's only sendingpassword
andpassword_confirmation
.This PR adds a method on
ConfideUser
that provides aboolean
to be checked atsave
method and change the ruleset to'password_reset
' which requires onlypassword
andpassword_confirmation
to pass on.Due to the
boolean
variable that needs to get passed onpasswordReset
UserRepository
andUserController
suffered minor changes.This PR also allows all accordingly validation messages to be sent to final user instead of only showing him/her a generic Confide Lang defined error message.
Dunno if this will break any tests, take it as a proposal template if so.
:beers: