mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
login model adjustments
This commit is contained in:
@@ -20,6 +20,8 @@ var LoginData = function (response, userId) {
|
||||
this.organizationId = response.organizationId;
|
||||
this.folderId = response.folderId;
|
||||
this.userId = userId;
|
||||
this.edit = response.edit;
|
||||
this.organizationUseTotp = response.organizationUseTotp;
|
||||
|
||||
if (response instanceof LoginResponse) {
|
||||
this.name = response.name;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user