Parámetro dos factores

This commit is contained in:
2025-05-26 15:56:41 -06:00
parent 738c9b07df
commit f611c35b49
5 changed files with 261 additions and 60 deletions

View File

@@ -110,8 +110,8 @@ function aprobar_solicitud()
$email_encrypt = encrypt($email);
// Insertar en usuarios_sistema
$sqlInsert = "INSERT INTO usuarios_sistema (nombre, email, password_hash, tipo_usuario, activo, creado_en)
VALUES (?, ?, ?, ?, 1, GETDATE())";
$sqlInsert = "INSERT INTO usuarios_sistema (nombre, email, password_hash, tipo_usuario, activo, creado_en, dos factores)
VALUES (?, ?, ?, ?, 1, GETDATE()), 0";
$stmtInsert = sqlsrv_query($conn, $sqlInsert, [
$nombre_encrypt, $email_encrypt, $password_hash, $tipo
]);