mirror of
https://github.com/writeas/writefreely-swiftui-multiplatform.git
synced 2024-11-15 01:11:02 +00:00
Add secure protocol to server string if it's missing
This commit is contained in:
parent
22bca3dbf4
commit
f686b6fb76
@ -52,6 +52,10 @@ struct AccountLoginView: View {
|
||||
.padding()
|
||||
} else {
|
||||
Button(action: {
|
||||
let secureProtocolPrefix = "https://"
|
||||
if !server.hasPrefix(secureProtocolPrefix) {
|
||||
server = secureProtocolPrefix + server
|
||||
}
|
||||
model.login(
|
||||
to: URL(string: server)!,
|
||||
as: username, password: password
|
||||
|
@ -7,12 +7,12 @@
|
||||
<key>WriteFreely-MultiPlatform (iOS).xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>0</integer>
|
||||
<integer>1</integer>
|
||||
</dict>
|
||||
<key>WriteFreely-MultiPlatform (macOS).xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>1</integer>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
|
Loading…
Reference in New Issue
Block a user