user balance part of schema

This commit is contained in:
Tyler Renelle 2013-01-18 21:38:29 -05:00
parent 1892723539
commit 25227abce9

View file

@ -30,8 +30,6 @@ get '/', (page, model, next) ->
# Set variables which are passed from the controller to the view
userObj = user.get()
#FIXME remove this eventually, part of user schema
userObj.balance = userObj.balance || 2
# support legacy Everyauth schema (now using derby-auth, Passport)
if username = userObj.auth?.local?.username
_view.loginName = username