Fall back to empty OTP

OpenVPN requires it to be non-nil when method is != .none

This is a quick fix.
This commit is contained in:
Davide 2024-10-30 18:27:05 +01:00
parent 3ae6ec5784
commit 14260b9bcd
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ extension OpenVPNView {
.onChange(of: builder) {
var copy = $0
if isEligibleForInteractiveLogin {
copy.otp = copy.otp?.nilIfEmpty
copy.otp = copy.otp ?? ""
} else {
copy.otpMethod = .none
copy.otp = nil