diff options
author | Julien Dessaux | 2021-04-21 17:23:07 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-04-21 17:23:07 +0200 |
commit | 4a2fb7e82d5d617298cb28b66485fc6f30c55781 (patch) | |
tree | 4ae55d8208e3ebf603f3a17ac56f6efd0e011efc /pkg/model | |
parent | Implemented the ResumeSession function (diff) | |
download | trains-4a2fb7e82d5d617298cb28b66485fc6f30c55781.tar.gz trains-4a2fb7e82d5d617298cb28b66485fc6f30c55781.tar.bz2 trains-4a2fb7e82d5d617298cb28b66485fc6f30c55781.zip |
Reworked the webui package, added authentication feature and tests
Diffstat (limited to 'pkg/model')
-rw-r--r-- | pkg/model/users.go | 10 |
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 } |