Add the ability to set passwords on registration
This commit is contained in:
parent
ebb55556d2
commit
334deb1ae7
12 changed files with 485 additions and 26 deletions
10
migrations/00002_password.sql
Normal file
10
migrations/00002_password.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
-- +goose Up
|
||||
CREATE TYPE HashType AS ENUM (
|
||||
'bcrypt-14');
|
||||
|
||||
ALTER TABLE user_ ADD COLUMN password_hash_type HashType;
|
||||
ALTER TABLE user_ ADD COLUMN password_hash TEXT;
|
||||
-- +goose Down
|
||||
ALTER TABLE user_ DROP COLUMN password_hash;
|
||||
ALTER TABLE user_ DROP COLUMN password_hash_type;
|
||||
DROP TYPE HashType;
|
||||
Loading…
Add table
Add a link
Reference in a new issue