/** * @see wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array( 'confirmMasterPassword' => $this->confirmMasterPassword, 'exampleMasterPassword' => PasswordUtil::getRandomPassword(12) )); }
/** * @see \wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('confirmMasterPassword' => $this->confirmMasterPassword, 'exampleMasterPassword' => PasswordUtil::getRandomPassword(16), 'relativeWcfDir' => RELATIVE_WCF_DIR)); }
/** * Checks whether the active user has entered the valid master password. */ public static function checkMasterPassword() { if (defined('MODULE_MASTER_PASSWORD') && MODULE_MASTER_PASSWORD == 1 && !WCF::getSession()->getVar('masterPassword')) { if (file_exists(WCF_DIR.'acp/masterPassword.inc.php')) { require_once(WCF_DIR.'acp/masterPassword.inc.php'); } if (defined('MASTER_PASSWORD') && defined('MASTER_PASSWORD_SALT')) { $form = new MasterPasswordForm(); $form->__run(); exit; } else { $form = new MasterPasswordInitForm(); $form->__run(); exit; } } }