diff --git a/inc/classes/BxDolAccount.php b/inc/classes/BxDolAccount.php index 70e8049e88..f36e448af5 100644 --- a/inc/classes/BxDolAccount.php +++ b/inc/classes/BxDolAccount.php @@ -680,6 +680,7 @@ public function addInformerPermanentMessages ($oInformer) $oInformer->add('sys-account-unconfirmed-phone', _t('_sys_txt_account_unconfirmed_phone', $sUrl), BX_INFORMER_ALERT); } } + $this->isNeedChangePassword(); } /** @@ -759,6 +760,9 @@ public function isNeedChangePassword($iAccountId = false) if (isset($aPageParams['i']) && $aPageParams['i'] == 'account-settings-password') $bNeedRedirectToChangePassword = false; + + bx_alert('account', 'is_need_to_change_password', $iAccountId, false, array('override_result' => &$bNeedRedirectToChangePassword)); + if ($aAccountInfo['password_expired'] >0 && $aAccountInfo['password_expired'] < time() && $bNeedRedirectToChangePassword){ if (getParam('sys_account_accounts_force_password_change_after_expiration') == 'on'){ header('Location: ' . BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=account-settings-password')); diff --git a/studio/template/css/launcher.css b/studio/template/css/launcher.css index a0ec509047..b173a47f4d 100644 --- a/studio/template/css/launcher.css +++ b/studio/template/css/launcher.css @@ -395,5 +395,12 @@ div.bx-std-widget-caption a { display: none; } - - +#bx-informer{ + position: fixed; + bottom: 0px; + width: calc(100% - 2.5rem); + left: 0px +} +#bx-informer .bx-informer-msg{ + background-color: rgba(255, 234, 193, 1); +} diff --git a/studio/template/scripts/BxBaseStudioLauncher.php b/studio/template/scripts/BxBaseStudioLauncher.php index ed18c165a5..a5af6e9bbb 100644 --- a/studio/template/scripts/BxBaseStudioLauncher.php +++ b/studio/template/scripts/BxBaseStudioLauncher.php @@ -88,6 +88,8 @@ public function getPageCode($sPage = '', $bWrap = true) if (getParam('site_tour_studio') == 'on') $sResult .= $oTemplate->parseHtmlByName('launcher_tour.html', array()); + $sResult .= BxDolInformer::getInstance($oTemplate)->display(); + $oTemplate->addInjection('injection_body_style', 'text', ' bx-std-page-launcher'); return $sResult; }