termino de la primera fase

This commit is contained in:
DanielRamirezGe
2020-02-14 20:13:18 -06:00
parent 11e616a41f
commit af6bf73d0c
11 changed files with 332 additions and 59 deletions
+1
View File
@@ -60,6 +60,7 @@ app.post('/registro', async(req, res) => {
if (n_cuenta != null)
n_cuenta = "'" + n_cuenta + "'";
let n_pasword = await bcrypt.hash(body.password, 10);
console.log(n_pasword);
cad = `insert into persona values (null,'${n_nombre}', '${n_apellido_p}', '${n_apellido_m}', ${po}, ${as}, '${n_institucion}', '${body.comunidad}',
'${body.situacion_academica}', '${body.pais}', ${n_cuenta}, '${n_correo}' ,'${n_pasword}', false );`;
respuesta = query(cad);