Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughAdds password-setup flows for social-auth users: new translations, frontend UI/components and actions to request/set passwords, backend endpoint and serializer field exposing password presence, and updated password-reset/account-setting flows and types. Changes
Sequence DiagramsequenceDiagram
actor User
participant Frontend as Frontend (React)
participant Action as Frontend Action
participant Backend as Backend API
participant DB as Database
User->>Frontend: Open Account Settings
Frontend->>Backend: GET /users/me (fetch profile)
Backend->>DB: Read user.has_password
DB-->>Backend: has_password=false
Backend-->>Frontend: Return profile (has_password=false)
Frontend->>Frontend: Render NoPasswordBanner, disable email edit
User->>Frontend: Click "Send Set-Password Email"
Frontend->>Action: sendSetPasswordEmail()
Action->>Backend: POST /users/me/request-set-password/
Backend->>DB: Check has_usable_password()
Backend->>Backend: send_password_reset_email(user)
Backend-->>Action: 204 No Content
Action-->>Frontend: Success response
Frontend->>Frontend: Show success toast
User->>Frontend: Click link in email (uid, token)
Frontend->>Frontend: Load password reset page with form
User->>Frontend: Submit new password
Frontend->>Action: passwordResetConfirmAction(uid, token, password)
Action->>Backend: POST /accounts/auth/password/reset/confirm/
Backend->>DB: Set user password
Backend-->>Action: Success
Action->>Frontend: Redirect to /accounts/settings/account/
Frontend->>Backend: GET /users/me
Backend->>DB: Return has_password=true
Frontend->>Frontend: Render updated settings (email edit enabled)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🧹 Preview Environment Cleaned UpThe preview environment for this PR has been destroyed.
Cleanup triggered by PR close at 2026-02-09T11:14:18Z |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Updated user account settings. If you signed up via Google/Facebook, we now show a disclaimer that you need to set up a password:
Clicking email change now shows an error toast:
The user is prompted to set up a password via the email password reset flow:
Slightly modified password reset page + added extra copy:

closes #2091
Summary by CodeRabbit
New Features
Improvements