10 Commits

Author SHA1 Message Date
Victor Vrantchan
b39018f84d Add viewer info to nav. 2021-02-20 22:03:04 -05:00
Victor Vrantchan
2f601dd30d Add FindUser method.
Returns the user by id.
2021-02-20 21:53:58 -05:00
Victor Vrantchan
ec514fd70e add form data to context
When calling frontend.Fail pass the form data in the context.
In case of an error, returns the values back so they're not reset on the
page.
2021-02-20 19:02:45 -05:00
Victor Vrantchan
695856b205 Handle unique constraint for user registration.
Returns an error if the same username or email already exists.
2021-02-20 18:24:39 -05:00
Victor Vrantchan
7fd2c8b33f Return 404 errors for missing resources.
Update login and register forms to return the right errors when the user
info can't be found.
2021-02-20 17:48:04 -05:00
Victor Vrantchan
7d75f581ec Added users sessions (#696)
Added login/logout pages and respective database methods for handling users sessions.
2020-08-08 17:15:34 -04:00
Victor Vrantchan
1d698cd23e Add account management web pages (#694)
Added internal/frontend/account to implement account management code. 
Added user registration templates and handlers.
Set up a sqlite and postgres database in package main.
2020-07-25 20:34:59 -04:00
Victor Vrantchan
7e811b8e56 Added data layer.
Initial structure for database clients. Exposes a user package with
SQLite and PostgreSQL implementations.
2020-07-15 10:17:00 -04:00
Victor Vrantchan
038fd359ae use pkg instead of internal
internal/ is too limiting, and by using pkg/ we can use the libraries in
our own projects elsewhere. The netlify-functions/vanity service uses
pkg/log already.
2020-06-29 08:48:49 -04:00
Victor Vrantchan
8763577922 add initial structure
The main change here is initializing micromdm.io as the module. That
allows micromdm to decouple from GitHub in the long run. It also means
I'll have to set up Go vanity URLs and move or modify the website
directory.

Other changes:
- WIP logging package
- Package id with ulid
- Tools repo
2020-06-27 22:57:10 -04:00