Skip to content

[BB-3594] Header Login button is aware of auth token

Boros Gábor requested to merge danielf/BB-3594 into master

Created by: spokerman12

We're fulfilling the following user story:

"As a OCIM developer, I want to make the page be aware of logged in status of user so that I can help the user to go to console"

In the Congratulations page, the user is actually logged in, but the page header shows the Login button. Make it aware that the user is logged in and change the text to “go to console”.

JIRA tickets: BB-3594

Screenshots: See Jira ticket

Merge deadline: "None"

Testing instructions:

  1. Pull this branch to your local OCIM environment.
  2. Make the suggested change below on src/registration/components/CongratulationsPage/CongratulationsPage.tsx, line 37, and test logging in, out and changing the suggested true to false:
   {true && (
         <RedirectToCorrectStep
           currentPageStep={4}
           currentRegistrationStep={this.props.currentRegistrationStep}
         />
   )}

Then head to registration/congrats.

Author notes and concerns:

  1. Currently, the user can only log out from inside the console, it should be possible to log out from outside the console, too. Maybe adding another NavLink below FAQ.

Reviewers

Merge request reports