D
D
D3V1L2018-02-26 16:53:47
User identification
D3V1L, 2018-02-26 16:53:47

How to change password recovery logic in Laravel Auth?

Good afternoon! The question is, there is a project written in Laravel by some random team of coders, and it so happened that I need to finish it, and one of the problems is a non-working password recovery system, which, as I understand it, is a modified version of the usual Auth in Laravel (why modified, because that when recovering a password, instead of the default two passwords in laravel, it also asks for mail and validates it), ultimately it turned out so that it gave an error on the field with the mail, literally - Wrong token. It is clear that everything was written there, to put it mildly, through one place, so such magic happened there, but when I removed this field, when I enter two passwords, the page simply refreshes and that's it, nothing happens, I climbed the controller,
Question. Where to find validations and in general the code that applies specifically to the /password/reset page, etc. , since there is nothing in the controller related to the validation of these passwords, and the algorithm as a whole?
Or even more likely how to reinstall the Auth module?
Thanks in advance, my first question, if anything, I immediately apologize for the amount of text, I tried to describe the essence in as much detail as possible)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
D3V1L, 2018-03-02
@D3V1L

Corrected. The problem was that the site was specified in .env http://site.ru/and because of the last slash the link to restore was formed http://site.ru//password/reset,and the token gave an error :)

N
Nurlan, 2018-02-26
@daager

So if the complaint is about the token, maybe it's in it? See if the _token is passed in the POST. They might have forgotten to put it in the form. Find the form, paste {{csrf_filed()} there and it might work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question