Skip to content
Snippets Groups Projects
Commit c41787e4 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

hash length is now 60 characters

parent e91b9a39
Branches
Tags
No related merge requests found
......@@ -27,7 +27,7 @@ CREATE TABLE accounts (
id bigint(20) NOT NULL AUTO_INCREMENT,
token varchar(50) NOT NULL,
password_crypt varchar(50) NOT NULL,
password_hash varchar(50) NOT NULL,
password_hash varchar(60) NOT NULL,
creation_date datetime DEFAULT NULL,
expiration_date datetime DEFAULT NULL,
profile varchar(100) NOT NULL,
......
......@@ -9,7 +9,7 @@ __PACKAGE__->meta->setup(
columns => [
id => { type => 'bigserial', not_null => 1 },
password_hash => { type => 'varchar', length => 50, not_null => 1 },
password_hash => { type => 'varchar', length => 60, not_null => 1 },
password_crypt => { type => 'varchar', length => 50, not_null => 1 },
password => { type => 'varchar', length => 50, nonpersistent => 1 },
token => { type => 'varchar', length => 50, not_null => 1 },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment