1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

feat: user signup

This commit is contained in:
Ferdinand Mütsch
2020-05-24 16:34:32 +02:00
parent a317dc6942
commit abfaa9d768
10 changed files with 280 additions and 58 deletions

View File

@ -40,4 +40,5 @@ type SummaryViewModel struct {
*Summary
LanguageColors map[string]string
Error string
Success string
}

View File

@ -7,6 +7,12 @@ type User struct {
}
type Login struct {
Username string `json:"username"`
Password string `json:"password"`
Username string `schema:"username"`
Password string `schema:"password"`
}
type Signup struct {
Username string `schema:"username"`
Password string `schema:"password"`
PasswordRepeat string `schema:"password_repeat"`
}