Skip to content

Commit afa577c

Browse files
committed
fix: trim whitespace and newlines from access url and token textfields
1 parent faaa0af commit afa577c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Coder-Desktop/Coder-Desktop/Views/LoginForm.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ struct LoginForm: View {
5858

5959
func submit() async {
6060
loginError = nil
61+
sessionToken = sessionToken.trimmingCharacters(in: .whitespacesAndNewlines)
6162
guard sessionToken != "" else {
6263
return
6364
}
@@ -164,6 +165,7 @@ struct LoginForm: View {
164165
}
165166

166167
private func next() {
168+
baseAccessURL = baseAccessURL.trimmingCharacters(in: .whitespacesAndNewlines)
167169
guard baseAccessURL != "" else {
168170
return
169171
}

0 commit comments

Comments
 (0)