AlejandraTech / viver-cellers

Web project dedicated to marketing wines for the winemakers of Vilafranca del Penedés who are part of the Viver del Cellers project.
4 stars 0 forks source link

PR 23: Improvements in the user registration form and management #43

Closed AlejandraTech closed 6 months ago

AlejandraTech commented 6 months ago

Improvements in the user registration form and management

Response to issue #21

Description of the PR:

This PR makes a series of changes in the code related to user registration in the Angular application viver-cellers. The changes include modifications in HTML files, TypeScript, and authentication services both in Angular and Laravel. These changes will allow adding users to the database through registration.

Changes made:

  1. Modifications in register.component.html:

    • Changed the field name from "firstname" to "Nom" and adjusted the corresponding validations and labels.
    • Added a field to select the province in the registration form.
    • Made corrections in error messages and field validations.
  2. Modifications in register.component.ts:

    • Adjusted the form submission logic to include the submission of the selected province.
    • Added logic to retrieve and display available provinces.
  3. Modifications in user-management.component.html and .ts:

    • Fixed the display of the username in user management.
  4. Modifications in Angular and Laravel models and services:

    • Adjustments were made to the user and province models in Angular.
    • Corresponding functionalities were implemented in the authentication service in Angular and Laravel to handle provinces and user registration.
  5. Modifications in the AuthController of Laravel:

    • Added logic to retrieve the list of available provinces.
    • Adjustments were made in the user registration method to include the province field.

Impact and objective:

These changes improve the functionality of user registration by allowing the selection of the province and ensuring data integrity. Additionally, error management and user information visualization in the user interface have been enhanced.