File

core/authentication/totp-setup.component.ts

Implements

OnInit

Metadata

selector c8y-totp-setup
templateUrl ./totp-setup.component.html

Index

Properties
Methods
Accessors

Constructor

constructor(user: UserService, alert: AlertService)
Parameters :
Name Type Optional
user UserService No
alert AlertService No

Methods

Async ngOnInit
ngOnInit()
Returns : any

Properties

totpSecret
totpSecret: ITotp
Type : ITotp

Accessors

qrCodeImage
getqrCodeImage()
secret
getsecret()
qrData
getqrData()
<div class="text-center">
  <p
    class="lead m-b-16"
    translate
  >
    Scan this QR code with your smartphone using the Google Authenticator app.
  </p>


  <qrcode
    *ngIf="totpSecret"
    [width]="300"
    [qrdata]="qrData"
    [cssClass]="'m-b-16'"
    [errorCorrectionLevel]="'M'"
  ></qrcode>
  <p class="text-center text-muted">
    {{secret}}
  </p>
</div>

result-matching ""

    No results matching ""