mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
22 lines
480 B
TypeScript
22 lines
480 B
TypeScript
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));
|
|
});
|
|
}
|
|
}
|
|
}
|