admin) { header('Location: ..'); die(); } if ($_SERVER['REQUEST_METHOD'] == 'POST') { if (password_verify($_POST['password'], $current_user->admin_password_hash)) { updateAdminHistory($current_user, AdminLog::ACTION_LOGIN); $_SESSION['admin_login'] = true; header("Location: dashboard.php"); exit(); } else { updateAdminHistory($current_user, AdminLog::ACTION_FAIL_LOGIN); $msg = '
Wrong Password
'; } } ?> PonePaste - Authenticate

PonePaste Admin Authentication