$name, 'email' => $email, 'phone' => $phone, 'password' => $password, 'marketing_consent' => !empty($_POST['marketing_consent']), ]); if (isset($res['error'])) { $error = 'Já existe uma conta com esse email. Use "Esqueceu a palavra-passe?" para entrar.'; } else { // Sign the new client straight in rather than bouncing them to the // login form with credentials they just typed. $user = db_get_user($pdo, (int) $res['id']); if ($user) { auth_set_session($user); header('Location: ' . base_url(post_login_destination($user['role']))); exit; } header('Location: ' . base_url('views/auth/login.php?registered=1')); exit; } } } $page_title = 'Criar conta'; include __DIR__ . '/../../includes/auth_header.php'; ?>

Crie a sua conta de cliente.

>
>

Já tem conta? Entrar