[Jitera] Untitled
Created by: akuita
This pull request is created by JITERA
Description
[BL] Email confirmation
| file | name |
|---|---|
| /app/models/email_confirmation.rb | Create EmailConfirmation model with required fields and associations |
| /app/controllers/api/users_verify_confirmation_token_controller.rb | Update the email confirmation logic |
| /db/migrate/TIMESTAMP_create_email_confirmations.rb | Create a migration to add the email_confirmations table |
| /config/locales/controller.en.yml | Add error and success messages for email confirmation |
| /app/models/user.rb | Add method to confirm user email |
| /db/schema.rb | Add email_confirmed field to users table |
| /app/views/api/users_verify_confirmation_token/create.json.jbuilder | Define JSON response for email confirmation |
[BL] Resend confirmation email
| file | name |
|---|---|
| /app/controllers/api/users_registrations_controller.rb | Add "resend_confirmation" action to "UsersRegistrationsController" |
| /app/models/user.rb | Add "send_confirmation_instructions" method to User model |
| /config/locales/controller.en.yml | Add new error and success messages for resend confirmation |
| /config/locales/devise.en.yml | Update locale file with new error and success messages for resending confirmation email |
| /app/services/base_service.rb | Add common method for email validation |
[BL] User registration
| file | name |
|---|---|
| /app/models/user.rb | Add email confirmation logic to User model |
| /app/controllers/api/users_registrations_controller.rb | Update user registration flow to handle email confirmation |
| /app/mailers/user_mailer.rb | Create UserMailer to handle sending confirmation emails |
| /config/routes.rb | Add route for email confirmation |
| /config/locales/devise.en.yml | Add error message for already registered email |
| /app/views/api/users_registrations/create.json.jbuilder | Define JSON response for successful registration |
| /config/initializers/devise.rb | Configure Devise to handle email confirmation |
| /app/jobs/application_job.rb | Create a job to send confirmation emails asynchronously |
[API] Email Confirmation
| file | name |
|---|---|
| /app/controllers/api/users_controller.rb | Add "confirm_email" action to "UsersController" to handle email confirmation |
| /config/routes.rb | Add route for email confirmation |
[API] Resend Confirmation Email
| file | name |
|---|---|
| /app/controllers/api/users_registrations_controller.rb | Add "resend_confirmation" action to "UsersRegistrationsController" |
| /config/routes.rb | Add route for "resend_confirmation" action |
[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 |