OpenMF icon indicating copy to clipboard operation
OpenMF copied to clipboard

[Frontend] Implement loadUser method to dynamically load home page

Open amlannandy opened this issue 3 years ago • 0 comments

Description

Implemented loadUser method which runs when the app starts and fetches the profile if the user was already authenticated, otherwise redirects to login.

This is also related to #85 and continues off the token-based authentication set there.

Fixes #146

Type of change

  • [x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Log in and then restart the web app

Test Configuration:

  • Windows 10
  • Google Chrome

screen-capture (3)

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [x] New and existing unit tests pass locally with my changes
  • [ ] Any dependent changes have been merged and published in downstream modules

amlannandy avatar Mar 05 '21 05:03 amlannandy