Posted By

lucastex on 03/17/09


Tagged

groovy grails acegi bootstrap


Versions (?)

Adding Users to Bootstrap.groovy


 / Published in: Groovy
 

  1. //Adding Users
  2. def userGod = new User( username:'god',
  3. userRealName:'god almighty',
  4. enabled: true,
  5. emailShow: true,
  6. email: '[email protected]',
  7. passwd: authenticateService.encodePassword('god')).save()
  8.  
  9. def userSlave = new User(username:'slave',
  10. userRealName:'poor slave',
  11. enabled: true,
  12. emailShow: true,
  13. email: '[email protected]',
  14. passwd: authenticateService.encodePassword('slave')).save()

Report this snippet  

You need to login to post a comment.