Detected 2 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: Usuario = (User.findByUsername("usuario")) def usuarioRol = Role.findByAuthority("ROLE_USER")?:(new Role(authority:"ROLE_USER").save(flush:true)) if(!nvoUsuario){ nvoUsuario= new User( username:"usuario", password: "julio" ).save(flush:true) } if(!nvoUsuario.authorities.contains(usuarioRol)){ UserRole.create nvoUsuario, usuarioRol, true } } def destroy = { } } Source: http://pastie.org/pastes/9335588/download
↧