Mejore la seguridad de las contraseñas :3

This commit is contained in:
Daniel Cortés
2019-06-12 12:33:38 -04:00
parent 50ee562fa4
commit 6a4ed86ad3
7 changed files with 73 additions and 60 deletions

View File

@@ -360,7 +360,8 @@ create table usuario
(
id int unsigned primary key auto_increment,
nombre varchar(255) not null,
password varchar(255) not null,
password binary(32) not null,
salt binary(16) not null,
trabajador_id int unsigned not null,
foreign key (trabajador_id) references trabajador (id) on delete cascade on update cascade,
inserted_at timestamp default current_timestamp
@@ -443,7 +444,4 @@ values (1, 2),
(9, 2);
INSERT INTO trabajador
VALUES (1, '197638990', 'Daniel', 'Cortes', 'Pincheira', '2019-06-04', '2019-06-04 18:12:55');
INSERT INTO usuario
VALUES (1, 'admin', 'IF7nbMo9zxGOH++0op8eE+obeILVzsZCguAqPVydL/0=', 1, '2019-06-05 00:08:50');
VALUES (1, '197638990', 'Daniel', 'Cortes', 'Pincheira', '2019-06-04', '2019-06-04 18:12:55');