Go to file
jordi fita mas 5f7b798eb4 Prefill login form when using the demo database
This is to help up “sell” the service: people can look around the demo
to see whether it fits them.  Of course, everyone should have the same
username in the demo.

We talked about having the username and password displayed above the
form in the template, but i think it makes more sense to give users as
little work as necessary.  Plus, that means i do not have to write them
down while developing.

Whether the database is demo or not is not something that directly
depends on the environment, but rather on which database we are
connected to, thus an environment variable would not make much sense—it
has to be something of the database.

PostgreSQL has no PRAGMA application_id or PRAGMA user_version as with
SQLite to include application-specific values to the database.  The
equivalent would be customized options[0], intended for modules
configuration, but that would require me to execute an ALTER DATABASE
in demo.sql with an specific datbase name, or force the use of psql to
run script the script, because then i can use the :DBNAME placeholder.

I guess that the most “standard” way is to just create a function that
returns a know value if the database is demo.  Sqitch does not add that
function, therefore it is unlikely to be there by change unless it is
the demo database.

https://www.postgresql.org/docs/15/runtime-config-custom.html
2024-01-20 20:23:26 +01:00
cmd/numerus Prefill login form when using the demo database 2024-01-20 20:23:26 +01:00
debian Debian: copy de modified build.go to the src folder in _build 2024-01-19 23:54:32 +01:00
demo Prefill login form when using the demo database 2024-01-20 20:23:26 +01:00
deploy Fix compute_new_expense_amount to set 0.00 to taxes when subtotal is '' 2023-08-25 14:19:27 +02:00
pkg Prefill login form when using the demo database 2024-01-20 20:23:26 +01:00
po Add legal disclaimer and privacy and cookies policies’ texts 2024-01-19 23:05:01 +01:00
revert Fix revert for contact_web 2024-01-20 19:47:26 +01:00
test Fix compute_new_expense_amount to set 0.00 to taxes when subtotal is '' 2023-08-25 14:19:27 +02:00
verify Fix compute_new_expense_amount to set 0.00 to taxes when subtotal is '' 2023-08-25 14:19:27 +02:00
web Remove the extra logo reference from login.gohtml 2024-01-20 19:06:59 +01: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 Add the customer name to the invoice’s PDF file name 2023-07-07 11:34:34 +02:00
go.sum Add the customer name to the invoice’s PDF file name 2023-07-07 11:34:34 +02:00
sqitch.conf Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
sqitch.plan Fix compute_new_expense_amount to set 0.00 to taxes when subtotal is '' 2023-08-25 14:19:27 +02:00