Skip to content

A separate login page

Created by: JieNanMAXIV

a new PR related to #90 (closed), and big thanks to Fredrik for refactoring :)

A separate login page is added, with the following major features / changes,

  1. Load the synchrotron_name and beamline_name from session HO (session.xml) and display on the login page
  2. Depending on LoginType that is defined in dbconnection.xml, the placeholder of LoginID is either User or Proposal
  3. Proposal info and SignOut are added into NavBar props (removed from login props), for displaying proposal info and signOut.
  4. LoggedIn flag is added in the login state
  5. Login error msg from Server is displayed on the top in the errorNotification panel.
  6. If loggedIn is OK, redirect to the main page.

PS1, tested with both mockup and MAXIV envir. PS2, loginID and password should NOT be empty, otherwise it hangs at the login page. A checkup and err notification should be added later.

Merge request reports