mirror of
https://github.com/bitwarden/web
synced 2025-12-15 07:43:16 +00:00
totp generator directive
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
.module('bit.vault')
|
||||
|
||||
.controller('vaultAddLoginController', function ($scope, apiService, $uibModalInstance, cryptoService, cipherService,
|
||||
passwordService, selectedFolder, $analytics, checkedFavorite, $rootScope) {
|
||||
passwordService, selectedFolder, $analytics, checkedFavorite, $rootScope, authService) {
|
||||
$analytics.eventTrack('vaultAddLoginController', { category: 'Modal' });
|
||||
$scope.folders = $rootScope.vaultFolders;
|
||||
$scope.login = {
|
||||
@@ -10,6 +10,10 @@
|
||||
favorite: checkedFavorite === true
|
||||
};
|
||||
|
||||
authService.getUserProfile().then(function (profile) {
|
||||
$scope.premium = profile.premium;
|
||||
});
|
||||
|
||||
$scope.savePromise = null;
|
||||
$scope.save = function (model) {
|
||||
var login = cipherService.encryptLogin(model);
|
||||
|
||||
Reference in New Issue
Block a user