Adding Users to Bootstrap.groovy

/ Published in: Groovy
Save to your folder(s)

Copy this code and paste it in your HTML
  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()
  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


RSS Icon Subscribe to comments

You need to login to post a comment.