diff --git a/plugins/login-register/LoginRegister.js b/plugins/login-register/LoginRegister.js index 939095ce3..d7a0230ad 100644 --- a/plugins/login-register/LoginRegister.js +++ b/plugins/login-register/LoginRegister.js @@ -7,7 +7,7 @@ if (forgotUrl || registerUrl) { addEventListener('rl-view-model', e => { - if (e.detail && 'Login' === e.detail.viewModelTemplateID) { + if (e.detail && 'Login' === e.detail.templateId) { const container = e.detail.viewModelDom.querySelector('#plugin-Login-BottomControlGroup'), forgot = 'LOGIN/LABEL_FORGOT_PASSWORD', register = 'LOGIN/LABEL_REGISTRATION'; diff --git a/plugins/two-factor-auth/js/TwoFactorAuthLogin.js b/plugins/two-factor-auth/js/TwoFactorAuthLogin.js index c62522371..3bff11e01 100644 --- a/plugins/two-factor-auth/js/TwoFactorAuthLogin.js +++ b/plugins/two-factor-auth/js/TwoFactorAuthLogin.js @@ -2,7 +2,7 @@ (rl => { rl && addEventListener('rl-view-model', e => { - if (e.detail && 'Login' === e.detail.viewModelTemplateID) { + if (e.detail && 'Login' === e.detail.templateId) { const container = e.detail.viewModelDom.querySelector('#plugin-Login-BottomControlGroup'), placeholder = 'LOGIN/LABEL_TWO_FACTOR_CODE'; if (container) {