Pass on the tokenScopes

This commit is contained in:
Girish Ramakrishnan
2018-06-29 09:09:25 -07:00
parent 8f0b66bd98
commit 11f5aaaf3b

View File

@@ -807,7 +807,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
if (status !== 201 || typeof data !== 'object') return callback(new ClientError(status, data));
that.setToken(data.token);
that.setUserInfo({ username: username, email: email, admin: true, twoFactorAuthenticationEnabled: false });
that.setUserInfo({ username: username, email: email, admin: true, twoFactorAuthenticationEnabled: false, tokenScopes: data.tokenScopes });
callback(null, data.activated);
}).error(defaultErrorHandler(callback));