'user', 'target_label' => audit_mask_email((string) ($_POST['email'] ?? '')), 'actor' => null]); throttle_block('login form'); } throttle_record($pdo, 'login'); throttle_record($pdo, 'login_acct', $acct); $user = auth_login($pdo, $_POST['email'] ?? '', $_POST['password'] ?? ''); if ($user) { auth_set_session($user); audit('auth.login', ['target_type' => 'user', 'target_id' => (int) $user['id'], 'target_label' => (string) $user['name']]); header('Location: ' . base_url($destination($user['role']))); exit; } $report_login('login_failed'); audit('auth.login_failed', ['target_type' => 'user', 'target_label' => audit_mask_email((string) ($_POST['email'] ?? '')), 'actor' => null]); // Deliberately vague — doesn't reveal whether the address exists. $error = 'Email ou palavra-passe incorretos.'; } // Preserve the redirect intent across the POST. $form_qs = $return_to !== '' ? ('?' . http_build_query(['return_to' => $_GET['return_to'] ?? ''])) : ''; $page_title = 'Entrar'; include __DIR__ . '/../../includes/auth_header.php'; ?>
Entre na sua conta para continuar.
Se a sua conta foi criada por nós, ainda não tem palavra-passe definida — use Esqueceu a palavra-passe? para definir uma.
Novo cliente? Criar conta