[FE] Login
Opened this issue · 1 comments
andlo779 commented
As a USER I want to be able to login in the user interface so I can see the resources I have the access to.
Acceptance criteria:
- add Login button to Navigation
- when user click on Login show a pop-up with username/password form
- if 200:
- if session-id:
- new layout on pop-up with OTP form
- normal error handling
- new layout on pop-up with OTP form
- if access-token:
- close pop-up
- then close pop-up
- if session-id:
- if 401:
- empty password field + display error message
User flow [WIP]
- User go to /
- Main page is loaded with Header and Footer
- Header has navigation to home + about + login
- User clicks on Login
- Login popup is shown
- User provides auth data + clicks login (send)
- If TwoFactorAuth is active new popup is shown
- User provides OTP + click login
- Popup is minimised + login in Header changes to logout + Left side Navigation is shown
- Navigation can be minimised (burger style)
andlo779 commented
Idea - Maybe the flow should be different as the plan is not to allow people to sign-up/register for the app by them self. More a private app just for me. So, maybe users will be directed to login page if they don't have valid jwt token.