Browse Source
* PS-589 Added Device Verification section for enable/disable the feature of 2FA email on new device login and the api calls for the new endpoint * PS-589 prettier fix * PS-589 Fix import typo because of caps * PS-589 Improved button to use bitButton directive and loading to have the ngIf on the 2fa setup componentpull/2897/head
8 changed files with 186 additions and 3 deletions
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
export class DeviceVerificationRequest { |
||||
unknownDeviceVerificationEnabled: boolean; |
||||
|
||||
constructor(unknownDeviceVerificationEnabled: boolean) { |
||||
this.unknownDeviceVerificationEnabled = unknownDeviceVerificationEnabled; |
||||
} |
||||
} |
||||
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
import { BaseResponse } from "./baseResponse"; |
||||
|
||||
export class DeviceVerificationResponse extends BaseResponse { |
||||
isDeviceVerificationSectionEnabled: boolean; |
||||
unknownDeviceVerificationEnabled: boolean; |
||||
|
||||
constructor(response: any) { |
||||
super(response); |
||||
this.isDeviceVerificationSectionEnabled = this.getResponseProperty( |
||||
"IsDeviceVerificationSectionEnabled" |
||||
); |
||||
this.unknownDeviceVerificationEnabled = this.getResponseProperty( |
||||
"UnknownDeviceVerificationEnabled" |
||||
); |
||||
} |
||||
} |
||||
Loading…
Reference in new issue