1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 07:13:32 +00:00

login model adjustments

This commit is contained in:
Kyle Spearrin
2017-07-11 14:50:49 -04:00
parent 2ae21eef82
commit 1053491d28
3 changed files with 5 additions and 1 deletions

View File

@@ -93,6 +93,8 @@ var Login = function (obj, alreadyEncrypted) {
this.organizationId = obj.organizationId ? obj.organizationId : null;
this.folderId = obj.folderId ? obj.folderId : null;
this.favorite = obj.favorite ? true : false;
this.organizationUseTotp = obj.organizationUseTotp ? true : false;
this.edit = obj.edit ? true : false;
if (alreadyEncrypted === true) {
this.name = obj.name ? obj.name : null;