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. passwd: authenticateService.encodePassword('god')).save()
  7.  
  8. def userSlave = new User(username:'slave',
  9. userRealName:'poor slave',
  10. enabled: true,
  11. emailShow: true,
  12. passwd: authenticateService.encodePassword('slave')).save()

Report this snippet  

You need to login to post a comment.