setLoginTarget("index.html");
if(Config::$ENVIRONMENT==Config::REMOTEDOCKER)$page->setOrcidLoginTarget("profile.html?login=true");
if(isset($_REQUEST['emailLoginButton'])){
$auth=$page->localAuthenticate($_REQUEST);
//echo "Auth :: $auth
";
if(!$auth)$_REQUEST['loginFail']=true;
else {
header('Location: profile.html?login=true');
exit;
}
}
if(isset($_REQUEST['loginFail'])){
$message="- Error: Could not login successfully :: check your credentials
";
$modal=new Modal_Alert($page,"loginFail",$message);
$modal->setOnPageLoad(true);
$modal->setConfirmDialog();
$page->setLoginName($_REQUEST['email']);
}
echo $page->getLoginPage();
?>