1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 06:43:35 +00:00

totp code management and countdown timer

This commit is contained in:
Kyle Spearrin
2017-07-11 14:05:04 -04:00
parent fccaa5f8de
commit 21feb653cb
11 changed files with 245 additions and 7 deletions

View File

@@ -41,6 +41,9 @@ function initLoginService() {
return self.cryptoService.encrypt(login.notes, orgKey);
}).then(function (cs) {
model.notes = cs;
return self.cryptoService.encrypt(login.totp, orgKey);
}).then(function (cs) {
model.totp = cs;
return model;
});
};
@@ -193,7 +196,7 @@ function initLoginService() {
function apiSuccess(response) {
login.id = response.id;
userService.getUserId(function (userId) {
self.userService.getUserId(function (userId) {
var data = new LoginData(response, userId);
self.upsert(data, function () {
deferred.resolve(login);