feat(auth): implement password reset functionality#71
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis update introduces a complete password reset workflow to the authentication system. It adds API methods, two new Vue views for requesting and resetting passwords, corresponding routes, and localization strings in English and French. Minor improvements and refactoring are also made in history and room components, including support for a new user active status property. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ForgotPasswordView
participant AuthAPI
participant Email
participant ResetPasswordView
participant Router
User->>ForgotPasswordView: Enter email & submit
ForgotPasswordView->>AuthAPI: forgotPassword(email)
AuthAPI->>Email: Send reset link with token
ForgotPasswordView-->>User: Show success message
User->>Email: Open reset link (with token)
Email->>ResetPasswordView: Load with token in query
User->>ResetPasswordView: Enter new password & submit
ResetPasswordView->>AuthAPI: resetPasswordWithToken(token, newPassword)
AuthAPI-->>ResetPasswordView: AuthResponse (success or error)
ResetPasswordView-->>User: Show result, redirect to login
ResetPasswordView->>Router: Redirect to login (on success)
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (11)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Improvements
Style