Skip to content

[Jitera] Untitled

Quy requested to merge feat/JT-4274-Untitled into main

Created by: akuita

This pull request is created by JITERA

Description

[BL] Password management tool integration

file name
/app/models/password_management_integration.rb Create PasswordManagementIntegration model
/db/migrate/XXXXXXXXXXXXXX_create_password_management_integrations.rb Create migration for password_management_integrations table
/app/controllers/api/users_controller.rb Add integration action to UsersController
/config/routes.rb Add route for password management tool integration
/config/locales/controller.en.yml Add localization entries for password management tool integration
/app/controllers/api/users_passwords_controller.rb Add action to integrate password management tool
/app/services/base_service.rb Add encryption service for integration data
/config/initializers/secure_headers.rb Ensure secure headers for password management integration

[BL] Resend confirmation email

file name
/app/controllers/api/users_controller.rb Add "resend_confirmation" action to "UsersController"
/app/models/user.rb Add method to generate and save a new confirmation token
/app/models/email_confirmation.rb Add method to check the last confirmation email sent time
/config/locales/controller.en.yml Add new error message for resend confirmation rate limit
/app/controllers/api/users_verify_confirmation_token_controller.rb Add action to resend confirmation email
/config/locales/devise.en.yml Update confirmation email instructions if necessary
/app/services/base_service.rb Add common service method for rate limiting email resends

[BL] User registration

file name
/app/models/user.rb Add email confirmation logic to User model
/app/controllers/api/users_registrations_controller.rb Implement user registration flow in UsersRegistrationsController
/config/locales/controller.en.yml Add user registration related messages
/config/routes.rb Add route for resending confirmation instructions
/app/services/base_service.rb Add method to generate unique token for email confirmation
/config/initializers/devise.rb Configure Devise to handle password encryption and email confirmation
/app/controllers/application_controller.rb Add rate limiting for email confirmation resend requests
/app/views/devise/mailer/confirmation_instructions.html.slim Update confirmation email template with token link

[BL] Email confirmation

file name
/app/controllers/api/users_verify_confirmation_token_controller.rb Update create action to handle email confirmation logic
/app/models/user.rb Add method to confirm user email
/app/models/email_confirmation.rb Create EmailConfirmation model to interact with email_confirmations table
/config/locales/controller.en.yml Add error messages for email confirmation process
/app/views/api/users_verify_confirmation_token/create.json.jbuilder Update JSON response to include email confirmation status
/config/locales/devise.en.yml Add localization strings for email confirmation

[API] Email Confirmation

file name
/app/controllers/api/users_controller.rb Add "confirm_email" action to "UsersController" to confirm user email
/config/routes.rb Add route for email confirmation

[API] Password Management Tool Integration

file name
/app/controllers/api/users_controller.rb Add "integrate_password_management_tool" action to "UsersController"
/config/routes.rb Add route for password management tool integration

[API] Resend Confirmation Email

file name
/app/controllers/api/users_controller.rb Add "resend_confirmation" action to "UsersController"
/config/routes.rb Add route for "resend_confirmation" action in "UsersController"

[API] User Registration

file name
/app/controllers/api/users_registrations_controller.rb Add "register" action to "UsersRegistrationsController" to handle user registration
/config/routes.rb Add route for user registration
/app/models/user.rb Add validation for password format in User model
/app/models/email_confirmation.rb Add method to create email confirmation token in EmailConfirmation model

Merge request reports