* @license MIT */ declare(strict_types=1); include '../../start.php'; use BitBadger\InspiredByFSharp\Option; use FeedReaderCentral\{Key, Security}; Security::verifyUser(redirectIfAnonymous: false); // Users already logged on have no need of this page if (key_exists(Key::UserId, $_SESSION)) frc_redirect('/'); if ($_SERVER['REQUEST_METHOD'] === 'POST') { Security::logOnUser($_POST['email'] ?? '', $_POST['password'], Option::of($_POST['returnTo'] ?? null)); // If we're still here, something didn't work; preserve the returnTo parameter $_GET['returnTo'] = $_POST['returnTo']; } $isSingle = SECURITY_MODEL === Security::SingleUserPasswordMode; page_head('Log On'); ?>

Log On