davidcr01 / WordlePlus

Repository to store all the documentation, files and structure of my Final Degree Project (TFG in Spanish). The main goal is to develop, as full-stack web developer, a remodel of the Wordle game, including more features and functionalities using Ionic, Django REST Api and PostgreSQL.
1 stars 0 forks source link

Register page #14

Closed davidcr01 closed 1 year ago

davidcr01 commented 1 year ago

Description

This PR adds the Register page. This page creates the user in the platform, either players or administrators, depending on the staff code. This code is required for those users who want to be administrators. These codes are only distributed by the superuser. This page is correctly connected to the backend.

The form is correctly validated, forcing the user to add the required fields and not allowing incorrect inputs. The errors "this username is already taken" and "the staff code is not valid" are contemplated.

Besides, a reported bug is solved #9. When creating an administrator, it is assigned to the "Staff" group and has its correct permissions to manage users and players.