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>
<div class="d-flex j-c-center">
<qrcode
[width]="180"
*ngIf="totpSecret"
[qrdata]="qrData"
[errorCorrectionLevel]="'M'"
[elementType]="'svg'"
></qrcode>
</div>
<p class="text-center text-muted">
{{ secret }}
</p>
</div>