Skip to content

[ADD] Add a Primary Language Field to the Registration Page #47

@AbhilashK26

Description

@AbhilashK26

Add a Primary Language Field to the Registration Page

Description

A new field, primary_lang, needs to be added to the registration page. This field will allow users to specify their primary language during registration. The data entered in this field should also be sent to the backend and stored in the database.


Task Details

  1. Frontend Changes:

    • Modify the register.jsx file located in codebase/frontend/src/pages/.
    • Add a new input field labeled "primary_lang" to the registration form.
    • Ensure the input field is included in the form data sent to the backend upon submission.
  2. Backend Changes:

    • Modify the auth.js file located in codebase/backend/controllers/.
    • Ensure the `primary_lang field is received and stored in the database when a user registers.
    • Remove any default value for primary_lang and ensure it is dynamically set based on user input.
  3. Database Integration:

    • Confirm that the primary_lang field is properly saved to the database as part of the user's data.
    • primary_lang field name should be same with the one included in codebase/backend/models/User.js file.
  4. Follow Pull Request Guidelines:

    • Make sure the primary_lang field is optional to avoid breaking existing functionality.
    • Use meaningful variable names and provide comments where necessary.
    • Follow the Pull_request_template.md file when submitting the Pull Request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Mediummedium difficultyenhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions