bigbluebutton-Github/bbb-scheduler/grails-app/conf/BootStrap.groovy
Richard Alam 7f2f9c1201 initial import
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@638 af16638f-c34d-0410-8cfa-b39d5352b314
2008-10-28 15:05:48 +00:00

18 lines
496 B
Groovy

class BootStrap {
def init = { servletContext ->
println 'bootstrapping'
final String EMAIL_ADMIN = 'voadmin@test.com'
final String PASSWORD = 'changeme'
final String FULLNAME = 'VO ADMIN'
if (!User.findByEmail(EMAIL_ADMIN)) {
println 'saving new user'
new User(email:EMAIL_ADMIN, password:PASSWORD, fullName:FULLNAME).save()
User a = User.findByEmail(EMAIL_ADMIN)
println a.email
}
}
def destroy = {
}
}