Sign up method.
beginning of adding methods to create account and authentication.
This commit is contained in:
parent
855eb16973
commit
5e4e086247
5 changed files with 258 additions and 32 deletions
18
backend/sql/data_test.sql
Normal file
18
backend/sql/data_test.sql
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
INSERT INTO [User] ([id], [email], [name], [password], [creation_datetime], [validation_token])
|
||||
VALUES (
|
||||
1,
|
||||
'paul@test.org',
|
||||
'paul',
|
||||
'$argon2id$v=19$m=4096,t=3,p=1$1vtXcacYjUHZxMrN6b2Xng$wW8Z59MIoMcsIljnjHmxn3EBcc5ymEySZPUVXHlRxcY',
|
||||
0,
|
||||
NULL
|
||||
);
|
||||
|
||||
INSERT INTO [Recipe] ([user_id], [title])
|
||||
VALUES (1, 'Croissant au jambon');
|
||||
|
||||
INSERT INTO [Recipe] ([user_id], [title])
|
||||
VALUES (1, 'Gratin de thon aux olives');
|
||||
|
||||
INSERT INTO [Recipe] ([user_id], [title])
|
||||
VALUES (1, 'Saumon en croute');
|
||||
Loading…
Add table
Add a link
Reference in a new issue