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(token)
|
||||
Parameters :
Returns :
any
|
<c8y-modal [customFooter]="true" [title]="'Set up two-factor authentication' | translate">
<c8y-totp-setup></c8y-totp-setup>
<c8y-totp-challenge (onSuccess)="totpSetupVerified($event)" (totpUnconfirmedEmitter)="close()"></c8y-totp-challenge>
</c8y-modal>