Remove redundant client TYPE_*s

This commit is contained in:
Johannes Zellner
2016-06-08 14:09:06 +02:00
parent e954df2120
commit 4776a005a5
5 changed files with 11 additions and 25 deletions

View File

@@ -455,7 +455,7 @@ function setPassword(userId, newPassword, callback) {
if (error) return callback(new UserError(UserError.INTERNAL_ERROR, error));
// Also generate a token so the new user can get logged in immediately
clients.getByAppIdAndType('webadmin', clients.TYPE_ADMIN, function (error, result) {
clients.get('cid-webadmin', function (error, result) {
if (error) return callback(new UserError(UserError.INTERNAL_ERROR, error));
var token = tokendb.generateToken();