aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorJulien Dessaux2021-04-21 17:23:07 +0200
committerJulien Dessaux2021-04-21 17:23:07 +0200
commit4a2fb7e82d5d617298cb28b66485fc6f30c55781 (patch)
tree4ae55d8208e3ebf603f3a17ac56f6efd0e011efc /pkg
parentImplemented the ResumeSession function (diff)
downloadtrains-4a2fb7e82d5d617298cb28b66485fc6f30c55781.tar.gz
trains-4a2fb7e82d5d617298cb28b66485fc6f30c55781.tar.bz2
trains-4a2fb7e82d5d617298cb28b66485fc6f30c55781.zip
Reworked the webui package, added authentication feature and tests
Diffstat (limited to 'pkg')
-rw-r--r--pkg/model/users.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/model/users.go b/pkg/model/users.go
index e4b4bf0..943d161 100644
--- a/pkg/model/users.go
+++ b/pkg/model/users.go
@@ -11,12 +11,12 @@ type User struct {
}
type UserLogin struct {
- Username string `json:"username"`
- Password string `json:"password"`
+ Username string
+ Password string
}
type UserRegistration struct {
- Username string `json:"username"`
- Password string `json:"password"`
- Email string `json:"email"`
+ Username string
+ Password string
+ Email string
}