Go to file
jordi fita mas ef8f40e734 Create validation function for SQL domains and for phones
When i wrote the functions to import contact, i already created a couple
of “temporary” functions to validate whether the input given from the
Excel files was correct according to the various domains used in the
relations, so i can know whether i can import that data.

I realized that i could do exactly the same when validating forms: check
that the value conforms to the domain, in the exact same way, so i can
make sure that the value will be accepted without duplicating the logic,
at the expense of a call to the database.

In an ideal world, i would use pg_input_is_valid, but this function is
only available in PostgreSQL 16 and Debian 12 uses PostgreSQL 15.

These functions are in the public schema because initially i wanted to
use them to also validate email, which is needed in the login form, but
then i recanted and kept the same email validation in Go, because
something felt off about using the database for that particular form,
but i do not know why.
2023-07-03 11:31:59 +02:00
cmd/numerus Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
debian Allow importing contacts from Holded 2023-07-03 00:05:47 +02:00
demo Add empty IBAN and BIC to demo contacts 2023-07-02 02:26:35 +02:00
deploy Create validation function for SQL domains and for phones 2023-07-03 11:31:59 +02:00
pkg Create validation function for SQL domains and for phones 2023-07-03 11:31:59 +02:00
po Allow importing contacts from Holded 2023-07-03 00:05:47 +02:00
revert Create validation function for SQL domains and for phones 2023-07-03 11:31:59 +02:00
test Create validation function for SQL domains and for phones 2023-07-03 11:31:59 +02:00
verify Create validation function for SQL domains and for phones 2023-07-03 11:31:59 +02:00
web Allow importing contacts from Holded 2023-07-03 00:05:47 +02:00
.gitignore Ignore IntelliJ’s project files 2023-01-30 16:42:15 +01:00
COPYING Rename LICENSE to COPYING 2023-01-15 04:08:35 +01:00
Makefile Rename extension of templates to .gohtml 2023-01-30 16:48:21 +01:00
go.mod Allow importing contacts from Holded 2023-07-03 00:05:47 +02:00
go.sum Allow importing contacts from Holded 2023-07-03 00:05:47 +02:00
sqitch.conf Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
sqitch.plan Create validation function for SQL domains and for phones 2023-07-03 11:31:59 +02:00