Announcement

Collapse
No announcement yet.

Override secondStepView

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Override secondStepView

    Hi,

    Anybody knows how to override secondStepView? I've added the following to my theme:
    \application\Espo\Modules\THEME\Resources\metadata \clientDefs\App.json

    {
    "loginView" : "theme:views/login",
    "secondStepView" : "theme:views/login-second-step"
    }

    My login page is working but when I get redirected (MFA) to login-second-step it loads the original.‚Äč

  • #2
    Are you calling the second step view in your login view?
    https://github.com/espocrm/espocrm/b.../login.js#L187

    Comment


    • #3
      Originally posted by Kharg View Post
      Are you calling the second step view in your login view?
      https://github.com/espocrm/espocrm/b.../login.js#L187
      Yes, but I'm unsure if I'm doing it right because I've copied it exactly like it is from login.js. Is this correct or should I modify the view variable?

      Comment


      • #4
        You should set your custom view
        Code:
        let view = data.view || 'theme:views/login-second-step';

        Comment


        • #5
          I'd recommend not to override views in themes as there's high chance of incompatibility after upgrade.

          Comment

          Working...
          X