Go to file
jordi fita mas b03ef35a95 Allow users to update their profile images
I do not see the profile image as an “integral part” of the user (i.e.,
no need for constraints), hence i do not want to store it in the
database, as would do for the identification image during check-in.

By default, i store the avatars in /var/lib/camper/avatars, but it is a
variable to allow packagers change this value using the linker.

This is also served as a test bed for uploading files to the server,
that now has a better interface and uses less resources that what i did
to Numerus.

Now the profile handler needs to keep a variable to know the path to the
avatars’ directory, thus i had to change it to a struct nested in app,
much like the fileHandler does.  It still has to return the HandlerFunc,
however, as this function needs to close over the user and connection
variables.

Part of #7.
2023-07-28 20:15:09 +02:00
cmd/camper Allow users to update their profile images 2023-07-28 20:15:09 +02:00
debian Add Debian package 2023-07-27 20:00:08 +02:00
deploy Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
pkg Allow users to update their profile images 2023-07-28 20:15:09 +02:00
po Allow users to update their profile images 2023-07-28 20:15:09 +02:00
revert Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
test Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
verify Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
web Allow users to update their profile images 2023-07-28 20:15:09 +02:00
.gitignore Add the skeleton of the web application 2023-07-23 00:11:00 +02:00
Makefile Add Debian package 2023-07-27 20:00:08 +02:00
demo.sql Fix the login of the demo users 2023-07-27 20:35:34 +02:00
go.mod Add the skeleton of the web application 2023-07-23 00:11:00 +02:00
go.sum Add the skeleton of the web application 2023-07-23 00:11:00 +02:00
sqitch.conf Add empty Sqitch configuration anq plan files 2023-07-20 23:43:23 +02:00
sqitch.plan Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00