Make all token grants without PREFIX_USER

This commit is contained in:
Johannes Zellner
2016-06-03 13:01:05 +02:00
parent 304cfed5a9
commit 3a9a667890
2 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ function loginLogic(clientId, username, password, callback) {
var accessToken = tokendb.generateToken();
var expires = Date.now() + 24 * 60 * 60 * 1000; // 1 day
tokendb.add(accessToken, tokendb.PREFIX_USER + userObject.id, clientId, expires, clientObject.scope, function (error) {
tokendb.add(accessToken, userObject.id, clientId, expires, clientObject.scope, function (error) {
if (error) return callback(error);
debug('login: new access token for client %s and user %s: %s', clientId, username, accessToken);