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:
parent
3ae6ec5784
commit
14260b9bcd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue