core/user/user-totp-setup.component.ts
selector | c8y-user-totp-setup |
templateUrl | ./user-totp-setup.component.html |
Methods |
|
constructor(user: UserService, modalService: ModalService, modal: BsModalRef, loginService: LoginService)
|
|||||||||||||||
Parameters :
|
close |
close()
|
Returns :
void
|
Async totpSetupVerified |
totpSetupVerified()
|
Returns :
any
|
<c8y-modal
[title]="'Set up two-factor authentication' | translate"
[headerClasses]="'dialog-header'"
[customFooter]="true"
>
<ng-container c8y-modal-title>
<span class="dlt-c8y-icon-phonelink-lock"></span>
</ng-container>
<c8y-totp-setup></c8y-totp-setup>
<c8y-totp-challenge [isModal]="true" (onSuccess)="totpSetupVerified()" (totpUnconfirmedEmitter)="close()"></c8y-totp-challenge>
</c8y-modal>