andlo779/cement

[FE] Login

Opened this issue · 1 comments

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
    • if access-token:
      • close pop-up
    • then close pop-up
  • if 401:
    • empty password field + display error message

User flow [WIP]

  1. User go to /
  2. Main page is loaded with Header and Footer
    • Header has navigation to home + about + login
  3. User clicks on Login
  4. Login popup is shown
  5. User provides auth data + clicks login (send)
    • If TwoFactorAuth is active new popup is shown
    • User provides OTP + click login
  6. Popup is minimised + login in Header changes to logout + Left side Navigation is shown
    • Navigation can be minimised (burger style)

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.