use createProject from project manager
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 16 May 2008 16:14:24 +0000 (16:14 +0000)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 16 May 2008 16:14:24 +0000 (16:14 +0000)
git-svn-id: http://trooper/svn/projects/jSite/trunk@902 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/jsite/core/CoreImpl.java

index b7ac2aa..93150f5 100644 (file)
@@ -442,11 +442,7 @@ public class CoreImpl implements Core, NodeListener, RequestListener {
         * {@inheritDoc}
         */
        public Project createProject() throws IOException, NoNodeException {
-               Project project = new Project();
-               String[] keyPair = nodeManager.generateKeyPair();
-               project.setPrivateKey(keyPair[0]);
-               project.setPublicKey(keyPair[1]);
-               return project;
+               return projectManager.createProject();
        }
 
        //