diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-07-09 19:44:21 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-07-09 19:44:21 -0400 |
| commit | 45da9f0a677bf6bf387840300b5b6edd16c55089 (patch) | |
| tree | 40fcb6439e29a66336541e16b27389a172cfc5f3 /server/auth/index.js | |
| parent | 91e9ee34e54abbba8376be880c1b133d701e598e (diff) | |
populating database
Diffstat (limited to 'server/auth/index.js')
| -rw-r--r-- | server/auth/index.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/server/auth/index.js b/server/auth/index.js index b15094d..4a0e9d2 100644 --- a/server/auth/index.js +++ b/server/auth/index.js @@ -3,15 +3,15 @@ var passport = require('passport'), LocalStrategy = require('passport-local').Strategy, _ = require('lodash'), - util = require('../util'), - config = require('../../../config.json'), + config = require('../../config.json'), User = require('../models/User'); -var auth = { +var auth = module.exports = { guestUser: { id: "guest", username: "guest", + name: "guest", access: 0, }, @@ -33,8 +33,7 @@ var auth = { return res.json({ status: "OK", user: user, - hosts: hosts, - returnTo: returnTo || "/profile" + hosts: hosts }) }) }); |
