AnthonMS / TimeMentor

This is the temporary repo for my Final Assignment for my studies
0 stars 0 forks source link

Create user #9

Closed AnthonMS closed 5 years ago

AnthonMS commented 6 years ago

Time Estimate: 10 Hours A super user should be abel to create regular users. He should only be able to create users until he reaches his company's liceneseQuantity. This means you need to create a new component, call it create-user. Add this to the routing module and add 'Create user' to the admin tab/navbar. Now design the page so it sticks to the theme of the website. Create the service to create new users in the database.

AnthonMS commented 5 years ago

A super user can now create users. The service checks if the email exist before saving in database. The generated username is also checked if it already exist. If it does it generates a new one, this is a recursive function, so it will generate a new username until it finds one that does not exist.