camper/pkg
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
..
app Allow users to update their profile images 2023-07-28 20:15:09 +02:00
auth Allow users to update their profile images 2023-07-28 20:15:09 +02:00
database Add the logout button 2023-07-26 13:49:47 +02:00
form Allow users to update their profile images 2023-07-28 20:15:09 +02:00
http Log the whole request path 2023-07-26 13:50:55 +02:00
locale Add profile form, inside a user menu 2023-07-26 20:46:09 +02:00
template Add profile form, inside a user menu 2023-07-26 20:46:09 +02:00