code: public void loginAndRedirectBack(Object userIdentifier, String defaultLandingUrl) {
          login(userIdentifier);
          RedirectToLoginUrl.redirectToOriginalUrl(this, defaultLandingUrl);
      }
docs: Login the user and redirect back to original URL. If no
  original URL found then redirect to `defaultLandingUrl`.
  
  @param userIdentifier
  the user identifier, could be either userId or username
  @param defaultLandingUrl
  the URL to be redirected if original URL not found