Mejore la seguridad de las contraseñas :3
This commit is contained in:
@@ -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');
|
||||
Reference in New Issue
Block a user