Now server/auth is completely generic on the user type

This commit is contained in:
2022-03-20 23:02:36 +01:00
parent ff0e0a5dcc
commit 10704d946f
5 changed files with 70 additions and 64 deletions
+4
View File
@@ -38,6 +38,10 @@ type User struct {
// passwordSaltHash string
}
func (user User) UID() string {
return user.ID
}
// Room represents a room in the database, a room has an id, a name and a collection of seatIDs of this room.
type Room struct {
ID string `json:"id"`