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:
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.
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.
Modifications in user-management.component.html and .ts:
Fixed the display of the username in user management.
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.
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.
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:
Modifications in
register.component.html
:Modifications in
register.component.ts
:Modifications in
user-management.component.html
and.ts
:Modifications in Angular and Laravel models and services:
Modifications in the
AuthController
of Laravel: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.