feat(Auth): Nullbare Eigenschaft namens 'UserSelectSMS' hinzugefügt.

- Sie wird standardmäßig als null zugewiesen.
 - Die Checkbox des Formulars in Envelope.cshtml wurde userSelectSMS genannt.
This commit is contained in:
Developer 02 2024-12-10 17:47:45 +01:00
parent 90c6e87224
commit a371abaabe
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
namespace EnvelopeGenerator.Web.Models namespace EnvelopeGenerator.Web.Models
{ {
public record Auth(string? AccessCode = null, string? SmsCode = null) public record Auth(string? AccessCode = null, string? SmsCode = null, bool? UserSelectSMS = null)
{ {
public bool HasAccessCode => AccessCode is not null; public bool HasAccessCode => AccessCode is not null;

View File

@ -42,7 +42,7 @@
@if (tfaEnabled) @if (tfaEnabled)
{ {
<div class="form-check form-switch tfa-sms"> <div class="form-check form-switch tfa-sms">
<input class="form-check-input" type="checkbox" role="switch" id="flexSwitchCheckChecked" @(hasPhoneNumber ? string.Empty : "disabled")> <input class="form-check-input" name="userSelectSMS" type="checkbox" role="switch" id="flexSwitchCheckChecked" @(hasPhoneNumber ? string.Empty : "disabled")>
<label class="form-check-label" for="flexSwitchCheckChecked">2FA per SMS</label> <label class="form-check-label" for="flexSwitchCheckChecked">2FA per SMS</label>
</div> </div>
} }