7f2f9c1201
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@638 af16638f-c34d-0410-8cfa-b39d5352b314
18 lines
496 B
Groovy
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 = {
|
|
}
|
|
} |