From 1678ebb3455e9617491f81966f993bf8805e4550 Mon Sep 17 00:00:00 2001 From: Daniel Howard Date: Wed, 2 Jul 2014 15:20:23 -0700 Subject: [PATCH] Refactor to make code more compact. --- server/libs/authentication/default/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/libs/authentication/default/index.js b/server/libs/authentication/default/index.js index 6f31f66..cdeb26c 100644 --- a/server/libs/authentication/default/index.js +++ b/server/libs/authentication/default/index.js @@ -8,9 +8,8 @@ exports.authenticate = function(request, callback, hub) { // Verify user based on request. // On failure, redirect user to auth form - hub.uid++; callback({ - username: 'username' + hub.uid, + username: 'username' + (++hub.uid), displayname: 'John Smith', otherinfo: 'any other relevant key/values' });