Skip to content

Conversation

@andrasbacsai
Copy link
Member

Changes

  • Skip password confirmation step for OAuth users (they don't have passwords)
  • Add hasPassword() method to User model to detect OAuth users
  • Add helper functions for centralized password confirmation logic
  • Update all 13 destructive action components to use the helper
  • Show "Confirm" button text instead of "Continue" when password step is skipped

Issues

OAuth users don't have passwords set, so they should not be prompted for password confirmation when performing destructive actions. This fix:
- Detects OAuth users via the hasPassword() method
- Skips password confirmation in modal for OAuth users
- Keeps text name confirmation as the final step
- Centralizes logic in helper functions for maintainability
- Changes button text to "Confirm" when password step is skipped

Fixes #4457

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <[email protected]>
@andrasbacsai andrasbacsai merged commit ad013ca into next Dec 12, 2025
4 checks passed
@andrasbacsai andrasbacsai deleted the oauth-password-confirm branch December 12, 2025 13:51
@andrasbacsai andrasbacsai mentioned this pull request Dec 16, 2025
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