After included you suggestion...
Now after testing for some days i have many customer where the mailed url token wont work and they get the login page but cant login. Then i rolled back to the originally file from 1.18.2 i started with and having the same problem.
After some days i as i get this problem myself when logging in to /scp
Authentication Required
Cant login at /scp it just say Authentication Required
Then i remove cookies then it say Invalid CSRF Token CSRFToken
Then one more time i can login.
Something is not right in 1.18.x i came from a 100% working 1.9.16 but the php v5.6 was closed by my host, therefore the update.
What is all this about. Du you have a suggestion?