epineda Posted May 3, 2012 Share Posted May 3, 2012 I'm using jasperserver CE 4.1.0 and I'm trying to hack the jasperserver code to put the username in a cookie after the login process. Anyone can help me to find which .java file I have to hack and where exactly?I'm trying hacking some files in: jasperserver/multi-tenancy/src/main/java/com/jaspersoft/jasperserver/multipleTenancy/*.java but without sucess. Thank you!!Edgard.Post Edited by epineda at 05/03/2012 20:35 Link to comment Share on other sites More sharing options...
epineda Posted May 4, 2012 Author Share Posted May 4, 2012 Finally I find a way:Edit WEB-INF/jsp/modules/login/login.jsp and add the following lines at the end of form with id="loginForm" (between "</form>" and "</div>") <script type="text/javascript"> Event.observe('loginForm', 'submit', function () { new JSCookie("my_cookie_name", $('j_username').value) });</script> :) That's all Post Edited by epineda at 05/04/2012 17:32 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now