fix(Envelope): remove farmework condition of tfa enabled

This commit is contained in:
2025-08-20 17:21:19 +02:00
parent d8200993af
commit e64ac4b5e7
6 changed files with 16 additions and 13 deletions

View File

@@ -71,7 +71,7 @@ Public Class EnvelopeEditorController
Dim oEnvelope As New Envelope() With {
.UserId = State.UserId,
.User = UserModel.SelectUser(),
.TFA_Enabled = DEF_TF_ENABLED
.TfaEnabled = DEF_TF_ENABLED
}
If EnvelopeModel.Insert(oEnvelope) Then

View File

@@ -168,7 +168,7 @@ Partial Public Class frmEnvelopeEditor
colPhoneNumber.Visible = False
Exit Sub
End If
If Envelope.TFA_Enabled = True Then
If Envelope.TfaEnabled = True Then
colPhoneNumber.Visible = DEF_TF_ENABLED_WITH_PHONE
Else
colPhoneNumber.Visible = False
@@ -564,7 +564,7 @@ Partial Public Class frmEnvelopeEditor
ViewReceivers.SetRowCellValue(e.RowHandle, ViewReceivers.Columns.Item(COL_NAME), oLastName)
CheckAccesscode(e.RowHandle, oAccessCode)
' ViewReceivers.SetRowCellValue(e.RowHandle, ViewReceivers.Columns.Item(COL_CODE), oAccessCode)
If Envelope.TFA_Enabled AndAlso DEF_TF_ENABLED_WITH_PHONE Then
If Envelope.TfaEnabled AndAlso DEF_TF_ENABLED_WITH_PHONE Then
ViewReceivers.SetRowCellValue(e.RowHandle, ViewReceivers.Columns.Item(COL_PHONE), oPhoneNumber)
End If
If ViewReceivers.GetRowCellValue(e.RowHandle, ViewReceivers.Columns.Item(COL_CODE)) = String.Empty Then

View File

@@ -85,7 +85,7 @@ Public Class frmEnvelopeMainData
' Now we can override these values with the values from envelope
txtTitle.EditValue = Envelope.Title
chkUseAccessCode.EditValue = Envelope.UseAccessCode
chked_2Faktor.EditValue = Envelope.TFA_Enabled
chked_2Faktor.EditValue = Envelope.TfaEnabled
cmbCertificationType.SelectedIndex = Convert.ToInt32(Envelope.CertificationType) - 1
cmbEmailToCreator.SelectedIndex = Convert.ToInt32(Envelope.FinalEmailToCreator)
cmbEmailToReceivers.SelectedIndex = Convert.ToInt32(Envelope.FinalEmailToReceivers)
@@ -97,7 +97,7 @@ Public Class frmEnvelopeMainData
End Sub
Private Sub CheckAccessCode()
If Envelope.TFA_Enabled = True Then
If Envelope.TfaEnabled = True Then
chkUseAccessCode.Checked = True
chkUseAccessCode.Enabled = False
Else
@@ -138,7 +138,7 @@ Public Class frmEnvelopeMainData
Envelope.ExpiresWarningWhenDays = spnExpiresWarningDays.EditValue
Envelope.FinalEmailToCreator = cmbEmailToCreator.SelectedIndex
Envelope.FinalEmailToReceivers = cmbEmailToReceivers.SelectedIndex
Envelope.TFA_Enabled = chked_2Faktor.EditValue
Envelope.TfaEnabled = chked_2Faktor.EditValue
' ContractType kann zzt nicht über die Oberfläche gesetzt werden
Envelope.ContractType = ContractType.Contract
End Sub