title: Grails spring security 3 field authentication
body: <p>I need to authenticate the users of my application using spring security but I need to have a 3 field authentication which will have a <code>username</code>, <code>password</code> and <code>companycode</code>. Since the app is handling too many companies so it needs to have the company code.</p>
  
  <p>I have been trying to address this issue and have came across this link which is written by @BurtBeckwith -
  <a href="http://burtbeckwith.com/blog/?p=1090" rel="nofollow">http://burtbeckwith.com/blog/?p=1090</a></p>
  
  <p>Now questions and doubts arises because this blog was written in 2011 and was used at the time of Grails 1.4. So have anyone came across any such issue in the recent past? Still we need to change this much to implement the 3 field login?</p>
  
  <p>Are there any shortcuts to implement this?</p>