Announcement

Collapse
No announcement yet.

Override secondStepView

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

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

    Leave a comment:


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

    Leave a comment:


  • novastream
    replied
    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?

    Leave a comment:


  • Kharg
    replied
    Are you calling the second step view in your login view?

    Leave a comment:


  • novastream
    started a topic Override secondStepView

    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.​
Working...
X