From sometime I have started to work on Drupal. I have 1 website created using Drupal 8 then upgraded to drupal 8.6 before 1 month. Now I have realised that passwordPassword reset link is not working in drupal 8.6. The email with the one-time login link is sent just fine, but when the user clicks on the Login button, they get "You are not authorized to access this page" message. Even I tried to open user/reset/{id}
with login as admin still same error. I did not knew if issue was there in drupal 8 or not. But whenWhen I figuring out the issue I found one line in user.module line no 556 \Drupal::moduleHandler()->invokeAll('user_login', [$account]);
is causing the issue. If I remove this line then I can reset my password successfully. whats this line is doing? Does it load all active modules in website? than there must be issue in any module. Could I remove this line? Any alter solution?
I tried by clearing cache,cookie, browser history, session table, also $cookie_domain = $_SERVER['HTTP_HOST'];
this line is not in my settings.php