...
Code Block | ||||
---|---|---|---|---|
| ||||
session = MgnlContext.getJCRSession("'users"') superuser = session.getNode('/system/superuser') superuser.pswd = info.magnolia.cms.security.SecurityUtil.getBCrypt('superuser') session.save() |
As with the jsp script you need to stop Magnolia and uncomment the filters sections in web.xml (see again Groovy Rescue App).