1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

model adjustments for new api props

This commit is contained in:
Kyle Spearrin
2017-07-11 13:00:47 -04:00
parent ba6e0d9617
commit c92b346e18
4 changed files with 47 additions and 2 deletions

View File

@@ -27,13 +27,15 @@ var LoginData = function (response, userId) {
this.username = response.username;
this.password = response.password;
this.notes = response.notes;
this.totp = response.totp;
}
else if (response instanceof CipherResponse) {
this.name = response.data.Name;
this.uri = response.data.Uri;
this.username = response.data.Username;
this.password = response.data.Password;
this.notes = response.notes = response.data.Notes;;
this.notes = response.notes = response.data.Notes;
this.totp = response.notes = response.data.Totp;
}
else {
throw 'unsupported instance';