Go to file
jordi fita mas f1bf1f896d Implement login cookie, its verification, and logout
At first i thought that i would need to implement sessions, the ones
that keep small files onto the disk, to know which user is talking to
the server, but then i realized that, for now at least, i only need a
very large number, plus the email address, to be used as a lookup, and
that can be stored in the user table, in a separate schema.

Had to change login to avoid raising exceptions when login failed
because i now keep a record of login attemps, and functions are always
run in a single transaction, thus the exception would prevent me to
insert into login_attempt.  Even if i use a separate procedure, i could
not keep the records.

I did not want to add a parameter to the logout function because i was
afraid that it could be called from separate users.  I do not know
whether it is possible with the current approach, since the settings
variable is also set by the same applications; time will tell.
2023-01-17 20:58:13 +01:00
cmd/numerus Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
debian Split into three debian packages: dev, binary, and sqitch migration 2023-01-16 13:22:16 +01:00
deploy Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
pkg Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
revert Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
test Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
verify Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
web/template Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
COPYING Rename LICENSE to COPYING 2023-01-15 04:08:35 +01:00
go.mod Downgrade pgx to v4 2023-01-15 20:45:45 +01:00
go.sum Downgrade pgx to v4 2023-01-15 20:45:45 +01:00
sqitch.conf Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
sqitch.plan Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00