1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

refactor for login uris and response model changes

This commit is contained in:
Kyle Spearrin
2018-03-01 23:44:29 -05:00
parent 52f3ea58d1
commit 063bb010db
27 changed files with 405 additions and 102 deletions

View File

@@ -0,0 +1,21 @@
import { LoginUriApi } from './loginUriApi';
export class LoginApi {
uris: LoginUriApi[];
username: string;
password: string;
totp: string;
constructor(data: any) {
this.username = data.Username;
this.password = data.Password;
this.totp = data.Totp;
if (data.Uris) {
this.uris = [];
data.Uris.forEach((u: any) => {
this.uris.push(new LoginUriApi(u));
});
}
}
}