Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication: Addressing Debt #1202

Merged
merged 6 commits into from
Jul 26, 2024

Conversation

jleandroperez
Copy link
Contributor

Fix

In this PR we're addressing pending tech debt, in the AuthenticationViewController class.

Test

Please smoke test Auth with Password + Code, and verify everything looks great!!

Release

These changes do not require release notes.

@jleandroperez jleandroperez added the debt Technical debt. label Jul 26, 2024
@jleandroperez jleandroperez added this to the 2.21 milestone Jul 26, 2024
@jleandroperez jleandroperez self-assigned this Jul 26, 2024
@jleandroperez jleandroperez changed the title Authentication: Addressing Dept Authentication: Addressing Debt Jul 26, 2024
@jleandroperez jleandroperez changed the base branch from trunk to feature/1187-magic-links July 26, 2024 17:26
@@ -52,6 +52,5 @@
- (void)presentPasswordResetAlert;
- (void)presentPasswordCompromisedAlert;
- (void)presentUnverifiedEmailAlert;
- (void)showAuthenticationErrorForCode:(NSInteger)responseCode responseString:(NSString *)responseString;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was triggering a warning. I've missed dropping the forward declaration, when ported to Swift

}

authWindowController.switchToMagicLinkRequestedUI(email: email)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in use any longer!

case passwordField:
state.password = passwordField.stringValue
state.password = passwordField.stringValue.trimmingCharacters(in: .whitespacesAndNewlines)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Legacy usernameText and passwordText had this trimming (L97 + L102 in this PR)

@IBAction
func switchToPasswordAuth(_ sender: Any) {
mode = AuthenticationMode.loginWithPassword
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one wasn't in use

}

var authWindowController: AuthWindowController? {
view.window?.windowController as? AuthWindowController
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋 too!!

@jleandroperez jleandroperez marked this pull request as ready for review July 26, 2024 17:27
@jleandroperez
Copy link
Contributor Author

TY!! 🔥

@jleandroperez jleandroperez merged commit cf9a815 into feature/1187-magic-links Jul 26, 2024
14 checks passed
@jleandroperez jleandroperez deleted the lantean/1187-debt-fixes branch July 26, 2024 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Technical debt.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants