Jump to content
Changes to the Jaspersoft community edition download ×

A hack to put the username in a cookie after the login


epineda

Recommended Posts

 

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

 

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...