core/authentication/totp-setup.component.ts
selector | c8y-totp-setup |
templateUrl | ./totp-setup.component.html |
Properties |
Methods |
|
Accessors |
constructor(user: UserService, alert: AlertService)
|
|||||||||
Parameters :
|
Async ngOnInit |
ngOnInit()
|
Returns :
any
|
totpSecret |
Type : ITotp
|
qrCodeImage |
getqrCodeImage()
|
secret |
getsecret()
|
qrData |
getqrData()
|
<div class="text-center">
<p class="m-24 m-t-16 m-b-0" translate>
Scan this QR code with your smartphone using the Google Authenticator app.
</p>
<qrcode *ngIf="totpSecret" [width]="180" [qrdata]="qrData" [errorCorrectionLevel]="'M'"></qrcode>
<p class="text-center text-muted">
{{ secret }}
</p>
</div>