Make a login process (database match) and redirecting to the properly dashboard roles
We need to make a process after the login button when a valid username and password in the login screen submit button, in order to to proccess checking the match in the database, getting the role, and redirect to the: admin dashboard, user dashboard, login screen (if password or user not valid).
The dashboards could be a blank page, and have to be protected to be access from other roles.
Make a login process (database match) and redirecting to the properly dashboard roles
The dashboards could be a blank page, and have to be protected to be access from other roles.
Acceptance criteria (AC)
BDD :
Scenario 1: Shows the login:
Given: The application is executed
And: The username and password was typed
When: The username and password are found like admin role in the database
Then: The blank admin dashboard has to be display in the admin endpoint
When: The username and password are found like user role in the database
Then: The blank user/process dashboard has to be display in the user endpoint
DOR:
Mockup: Login