Generate the OTP key on the server and show a QR code to scan.
@if (!this.authService.checkForceServerGenerateOTPKey("totp")) {
OTP Key
@if (otpKeyFormControl.hasError("required")) {
OTP key is required
}
@if (otpKeyFormControl.hasError("minlength")) {
OTP key must be at least 16 characters
}
}
OTP length
@for (len of otpLengthOptions; track len) {
{{ len }}
}
Some Authenticator Apps only support an OTP length of 6.Hash algorithm
@for (alg of hashAlgorithmOptions; track alg.value) {
{{ alg.viewValue }}
}
Some Authenticator Apps only support the SHA1 algorithm.