<?php

if ($currentUser) {
    header("Location: " . ($_GET["next"] ?? "."));
    exit;
}