 	
 	]
 
+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'
 ]

	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) ->
	


passport = require 'passport'
Promise = require 'bluebird'

