02845e65db
Added features: * register * authenticate * RLS as summarized in security_considerations.md Improve * Use enhanced graphiql version to be able to set authentication headers Remove: * docker-compose.prod.yml since it is not updated for now (and we do not have a production env)
31 lines
791 B
SQL
31 lines
791 B
SQL
select candymat_data.register_person(
|
|
'Erika',
|
|
'Mustermann',
|
|
'erika@mustermann.de',
|
|
'password'
|
|
);
|
|
select candymat_data.change_role(
|
|
1,
|
|
'candymat_editor'
|
|
);
|
|
select candymat_data.register_person(
|
|
'Max',
|
|
'Mustermann',
|
|
'max@mustermann.de',
|
|
'password'
|
|
);
|
|
select candymat_data.change_role(
|
|
2,
|
|
'candymat_candidate'
|
|
);
|
|
select candymat_data.register_person(
|
|
'Happy',
|
|
'User',
|
|
'happy@user.de',
|
|
'password'
|
|
);
|
|
select candymat_data.change_role(
|
|
3,
|
|
'candymat_person'
|
|
);
|