 	req.user.redactFor(req.user).then (redacted) ->
 	
 		user: redacted
-
-exports.loadByName = (name) ->
-	
-	{models: User: User} = require 'server/jugglingdb'
-	
-	User.findOne where: name: name
 
 exports.$httpInitializer = -> (req, res, next) ->
 	


nodeCrypto = require 'crypto'
passport = require 'passport'
Promise = require 'bluebird'


	
	]

exports.loadByName = (name) ->
	
	{models: User: User} = require 'server/jugglingdb'
	
	User.findOne where: name: name

exports[path] = require "packages/user/#{path}" for path in [
	'forgot', 'login', 'logout', 'register', 'reset'
]
