jeudi 8 juin 2017

Override Laravel 5 ResetPasswordController

Could someone explain how to override ResetPasswordController.php? I use the framework as an API only. My client side (vuejs) can reset a password, no problem, but I want to prevent the redirects on the server as Im using vuejs, separated from the backend.

Although my post works, I need to return something to the user: was it successful etc. The docs says nothing much on how to accomplish this.

Im only concerned about the ResetPasswordController and what functions to put inside. Basically, if the reset is successful, id return to the view "success" or "error" so I know to tell the view to do "x" or "y"

Thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire