Fix app password usage for non-admins

This commit is contained in:
Johannes Zellner
2020-02-24 13:29:47 +01:00
parent 3f92204de5
commit 728d50461f
2 changed files with 21 additions and 24 deletions
-3
View File
@@ -380,7 +380,6 @@ angular.module('Application').controller('ProfileController', ['$scope', '$locat
$scope.appPasswordAdd.busy = false;
$scope.appPasswordAdd.password = result;
console.log(result);
$scope.appPassword.refresh();
});
}
@@ -575,8 +574,6 @@ angular.module('Application').controller('ProfileController', ['$scope', '$locat
};
Client.onReady(function () {
if (!Client.getUserInfo().admin) return;
$scope.appPassword.refresh();
$scope.tokens.refresh();
});