Fix usage of normalizeScope

This commit is contained in:
Girish Ramakrishnan
2018-05-01 13:17:34 -07:00
parent f76a5a7ba7
commit c5ffb65563
3 changed files with 8 additions and 8 deletions

View File

@@ -253,7 +253,7 @@ function activate(username, password, email, displayName, ip, auditSource, callb
var token = tokendb.generateToken();
var expires = Date.now() + constants.DEFAULT_TOKEN_EXPIRATION;
tokendb.add(token, userObject.id, result.id, expires, accesscontrol.SCOPE_ANY, function (error) {
tokendb.add(token, userObject.id, result.id, expires, result.scope, function (error) {
if (error) return callback(new SetupError(SetupError.INTERNAL_ERROR, error));
eventlog.add(eventlog.ACTION_ACTIVATE, auditSource, { });