diff --git a/Simplenote/AuthViewController+Swift.swift b/Simplenote/AuthViewController+Swift.swift index 4034eae5d..b19deb055 100644 --- a/Simplenote/AuthViewController+Swift.swift +++ b/Simplenote/AuthViewController+Swift.swift @@ -367,9 +367,9 @@ extension AuthViewController { switch superView { case usernameField: - state.username = usernameField.stringValue + state.username = usernameField.stringValue.trimmingCharacters(in: .whitespacesAndNewlines) case passwordField: - state.password = passwordField.stringValue + state.password = passwordField.stringValue.trimmingCharacters(in: .whitespacesAndNewlines) case codeTextField: state.code = codeTextField.stringValue default: