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

Add password reset #371

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add password reset #371

wants to merge 1 commit into from

Conversation

Brutus5000
Copy link
Member

No description provided.

@Brutus5000 Brutus5000 requested a review from Sheikah45 December 31, 2024 13:47
@Brutus5000 Brutus5000 force-pushed the feature/password-reset branch 7 times, most recently from bcb8e6f to ea0113b Compare January 1, 2025 08:04
Comment on lines +105 to +110
val (recoveryType, user) = try {
recoveryService.parseRecoveryHttpRequest(parameters)
} catch (e: Exception) {
showDialog("recovery.setPassword.failed.title", "recovery.setPassword.invalidToken")
return
}
Copy link
Member

Choose a reason for hiding this comment

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

Kind of surprised we are using exceptions for control flow here when we could just return a sealed class

Copy link
Member

Choose a reason for hiding this comment

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

Lol also if you want could whip something up that turns the query parameters into a full class, have done it before.

@Brutus5000 Brutus5000 force-pushed the feature/password-reset branch from ea0113b to c08ba30 Compare January 3, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants