Skip to content

Commit

Permalink
AuthViewController: Adds missing trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
jleandroperez committed Jul 26, 2024
1 parent 20781d4 commit 275b492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Simplenote/AuthViewController+Swift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 275b492

Please sign in to comment.