public void loginAndRedirectBack ( Object userIdentifier , String defaultLandingUrl ) { login ( userIdentifier ) ; RedirectToLoginUrl . redirectToOriginalUrl ( this , defaultLandingUrl ) ; }
Login the user and redirect back to original URL . If no original URL found then redirect to defaultLandingUrl .