R
R
RuslanSer2020-09-19 18:28:43
Laravel
RuslanSer, 2020-09-19 18:28:43

How to change the principle of remember_token generation in laravel?

It is necessary Schaub when entering the site, remember_token was generated according to a different principle. Is it possible to change the logic of its generation without going into the vendor? Or write your own authorization controller?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2020-09-19
@JhaoDa

You make a custom one, change the buildSession()SessionManager method in it so that it returns a custom one with a modified regenerateToken() method . You throw the created one into the container in the same way as the original one . Store
SessionManager

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question