Incorrect login. Please try again below or contact your OpenConf administrator.

'; $failedNum++; if ($OC_configAR['OC_chairFailedSignIn'] != 'skip') { updateConfigSetting('OC_chairFailedSignIn', $failedNum . ':' . time()); } } elseif (!empty($OC_configAR['OC_chairMFA'])) { // multi-factor enabled if (preg_match("/^\\\$(OC_pcemail|OC_confirmmail)\$/", $OC_configAR['OC_chairMFA'])) { $tovar = substr($OC_configAR['OC_chairMFA'], 1); $to = $OC_configAR[$tovar]; } elseif (validEmail($OC_configAR['OC_chairMFA'])) { $to = $OC_configAR['OC_chairMFA']; } else { warn('Invalid multi-factor setup', 'Sign In', 3); exit; } $verifier = oc_idGen(32); if (function_exists('random_int')) { $code = random_int(100000, 999999); } else { $code = mt_rand(100000, 999999); } printHeader(OCC_WORD_CHAIR . ' Sign In', 3); ocsql_query("UPDATE `" . OCC_TABLE_CONFIG . "` SET `value`='" . safeSQLstr(time() . '|' . hash('sha256', $code . $verifier)) . "' WHERE `setting`='OC_chairMFAcode' AND `module`='OC' LIMIT 1") or err('Unable to setup authentication code'); $subject = $OC_configAR['OC_confName'] . ' Sign In'; $body = 'Hello, The requested code is: ' . $code . ' Please enter it within 15 minutes of requesting the code. '; oc_mail($to, $subject, $body) or err('Unable to email authenticate code'); print '

Enter the code received via email and click the button within 15 minutes:

'; printFooter(); exit; } else { // We have a winner! oc_chairSignIn(); } } printHeader(OCC_WORD_CHAIR . ' Sign In', 3); if (!empty($errmsg)) { print $errmsg; } elseif (isset($_GET['e']) && ($_GET['e'] == "exp")) { print 'Your session has timed out or you did not sign in properly. Please sign in again.

'; } print '

'; if ($OC_configAR['OC_chairUsernameForgot']) { print ' (forgot username?)'; } print '
'; if ($OC_configAR['OC_chairPasswordForgot']) { print ' (forgot password?)'; } print '


'; if ($OC_configAR['OC_ChairTimeout'] > 0) { print '

Note: Session times out after ' . $OC_configAR['OC_ChairTimeout'] . ' minutes of inactivity

'; } printFooter(); ?>