Skip to content

Fix/recovery bypass current password -> this is the current release!#4

Open
JulienBergero wants to merge 3 commits intorelease/v2.183.0-delosfrom
fix/recovery-bypass-current-password
Open

Fix/recovery bypass current password -> this is the current release!#4
JulienBergero wants to merge 3 commits intorelease/v2.183.0-delosfrom
fix/recovery-bypass-current-password

Conversation

@JulienBergero
Copy link

No description provided.

JulienBergero and others added 3 commits March 10, 2026 16:14
When updating a password via the recovery (password reset) flow,
the user cannot know their current password — that is the whole point
of the flow. This commit:

1. verifyPost: issues refresh tokens with models.Recovery auth method
   for RecoveryVerification type, so the AMR claim is correctly stored
   as "recovery" instead of "otp".

2. user.go: checks for the recovery AMR claim when
   GOTRUE_SECURITY_UPDATE_PASSWORD_REQUIRE_CURRENT_PASSWORD is enabled,
   and skips the current-password check for recovery sessions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant