Login
Overview¶
Different types of logins are available which provides different access accordingly:
- Owner
- Admin
- Admnistrator
- Teacher
- Supervisor
- Assistant Teacher
- Physical Therapist
- Speech therapist
- Occupational Therapist
This page explains about the various logins and accesses.
Route: /login¶
Features¶
- Displays all the accesses to choose from and login.
- Shows a list of schools assigned to a particular login.
Components¶
SchoolProfilesList: Displays the list of accesses in the school.- Location:
./SchoolProfilesList.svelte
- Location:
API Calls¶
POST-/api/v1/users/login, generates tokens.GET-/api/v1/users/profiles, fetches the profiles data.GET-/api/v1/library/accesses, fetches the accesses information.GET-/api/v1/schools/me, school information.GET-/api/v1/school/accesses, school accesses information.GET-/api/v1/users/${userId}, fetches the user details.
Discussion¶
- Accepts the login details and generates token using the API call
1. - Fetches the profiles data using the API call
2. - Fetches the profiles data using the API call
3. - Fetches the schools info using the API call
4. - Fetches the school accesses information using the API call
5. - Fetches the user details uing the API call
6.