I am using a Homestead
and installed ldap
for php
as vagrant
like this:
sudo apt-get install php7.2-ldap
I had the error:
TokenMismatchException in VerifyCsrfToken.php line 68
I checked the typical errors even though the login worked before installing LDAP
. There is a {{ csrf_token() }}
, the storage/framework/sessions
has 777 permit, I have cleared the cache but nothing works.
So I reset Homestead
and get to the login page, which works.
But when I login now the page is completely white and there is nothing in the log at all.
I have tried to do a dd("hello")
in the login controller but it is never called either. It just does not go to the controller after installing LDAP
.
As I said before, it works if I am not logged in.
It seems that after installing LDAP all permits were changed.
I just set them back recursively:
sudo chown -R www-data /path/to/laravel/files
Now everything works fine again.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.