Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-843 2a8445dee -> 17c6f30bb


# 843 WIP Login page.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/17c6f30b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/17c6f30b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/17c6f30b

Branch: refs/heads/ignite-843
Commit: 17c6f30bb6249cedd63fbf8fe7558b64445d4eb8
Parents: 2a8445d
Author: Andrey <anovi...@gridgain.com>
Authored: Wed May 27 13:21:37 2015 +0700
Committer: Andrey <anovi...@gridgain.com>
Committed: Wed May 27 13:21:37 2015 +0700

----------------------------------------------------------------------
 modules/webconfig/nodejs/routes/auth.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/17c6f30b/modules/webconfig/nodejs/routes/auth.js
----------------------------------------------------------------------
diff --git a/modules/webconfig/nodejs/routes/auth.js 
b/modules/webconfig/nodejs/routes/auth.js
index 41be291..35e5076 100644
--- a/modules/webconfig/nodejs/routes/auth.js
+++ b/modules/webconfig/nodejs/routes/auth.js
@@ -14,7 +14,7 @@ router.post('/register', function(req, res, next) {
         if (!account)
             return res.status(500).send('Failed to create account.');
 
-        new db.Space({name: 'Personal space', owner: account._id}).create();
+        new db.Space({name: 'Personal space', owner: account._id}).save();
 
         req.logIn(account, {}, function(err) {
             if (err)

Reply via email to