1
0
mirror of https://github.com/bitwarden/web synced 2025-12-15 07:43:16 +00:00

totp generator directive

This commit is contained in:
Kyle Spearrin
2017-07-07 00:13:26 -04:00
parent 8a90f562ef
commit ed13644a02
7 changed files with 243 additions and 4 deletions

View File

@@ -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);