Go to file
jordi fita mas 2f3fc8812d Include the locale inside the User struct
The locale is completely dependent on the user, as much as its email or
CSRF token, so it does not make much sense to have it in a separate
variable: for different users we might have to use different locales.
Also, this means one less variable to pass to handlers, that most of
them will need the user at some point or another (i.e., to render its
profile icon).

The thing is that i can not import `app.User` from the template package
because it would create an import cycle. I created the `auth` package
just because of that.

I thought that the login code would be better moved to the auth package
as well, but of course then i would reintroduce the import cycle between
auth and template.
2023-07-26 12:08:59 +02:00
cmd/camper Add the skeleton of the web application 2023-07-23 00:11:00 +02:00
deploy Add authentication relations, views, and functions for PostgreSQL 2023-07-22 01:59:12 +02:00
pkg Include the locale inside the User struct 2023-07-26 12:08:59 +02:00
po Include the locale inside the User struct 2023-07-26 12:08:59 +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 Get user from database based on cookie and serve login if not logged in 2023-07-26 01:50:39 +02:00
.gitignore Add the skeleton of the web application 2023-07-23 00:11:00 +02:00
Makefile Add Gettext and GettextNoop to locale 2023-07-24 17:09:43 +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