Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Help with Error_code when I create an user #32

Closed
lililondoo opened this issue Nov 15, 2016 · 0 comments
Closed

Help with Error_code when I create an user #32

lililondoo opened this issue Nov 15, 2016 · 0 comments

Comments

@lililondoo
Copy link

Hi,
I need help with my code, I can't create an user; always I have the error_code 60030 and I dont find the error on the code.
If someone finds it, I would appreciate it too much. It's for a college project for my grades.
Thanks.

`<?php
$tituloPagina = "Activacion 2FA";
session_start();

include_once "registro.php";
include_once "conexion.php";
require "vendor/autoload.php"; //accedemos a las librerias del composer.json


$apiKey = "WeuGMlbzYPfa9uz0ZZ50BZd16H9nDsiv";
$apiUrl= "https://api.authy.com/protected/json/users/new?api_key=WeuGMlbzYPfa9uz0ZZ50BZd16H9nDsiv";

?>

Activacion del segundo factor de autenticación

Email: *
País: *
Celular: *
<script src="jsform.authy.js"></script>

Recuerde descargar la App de Authy

registerUser($email, $celular, $codPais); if ($user->ok()) { echo '<script language="javascript">alert("'.$user->id().'");</script>'; echo '<script language="javascript">alert("El Id authy para el usuario "'.$email.'" es: '.$user->id().'");</script>'; $id_authy=$user->id(); $insertar=mysqli_query($conexion,"INSERT INTO usuarios(celular,pais,id_authy) VALUES ('$codPais','$celular','$id_authy') WHERE email='".$email."'") or die (mysqli_error($conexion)); echo '<script language="javascript">alert("Activacion Exitosa");</script>'; echo "<script language='javascript'>window.location='productos.php'</script>"; }else{ foreach ($user->errors() as $field => $error) { echo 'Error en '.$field.': '.$error; } } } include ("inc/footer.php"); ?>`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant