add login to quasar backend

This commit is contained in:
Adrian Zürcher
2025-06-19 19:33:27 +02:00
parent e5b1dc2052
commit 707d88fb7f
2 changed files with 1 additions and 1 deletions

11
backend/models/user.go Normal file
View File

@@ -0,0 +1,11 @@
package models
type User struct {
Name string `json:"user"`
Password string `json:"password,omitempty"`
Token string `json:"token,omitempty"`
}
func (u *User) IsValid() bool {
return u.Name != ""
}