Password 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. When 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