This commit is contained in:
Miroslav Šedivý 2021-03-14 20:26:58 +01:00
parent 85bb26d77c
commit 900ae006b8
4 changed files with 8 additions and 8 deletions

View File

@ -1,16 +1,16 @@
package members package members
import ( import (
"strconv"
"net/http" "net/http"
"strconv"
"demodesk/neko/internal/types" "demodesk/neko/internal/types"
"demodesk/neko/internal/utils" "demodesk/neko/internal/utils"
) )
type MemberDataPayload struct { type MemberDataPayload struct {
ID string `json:"id"` ID string `json:"id"`
Profile types.MemberProfile `json:"profile"` Profile types.MemberProfile `json:"profile"`
} }
type MemberCreatePayload struct { type MemberCreatePayload struct {

View File

@ -61,7 +61,7 @@ func (provider *MemberProviderCtx) Insert(username string, password string, prof
entries[id] = MemberEntry{ entries[id] = MemberEntry{
// TODO: Use hash function. // TODO: Use hash function.
Password: password, Password: password,
Profile: profile, Profile: profile,
} }
return id, provider.serialize(entries) return id, provider.serialize(entries)

View File

@ -83,7 +83,7 @@ func (provider *MemberProviderCtx) Insert(username string, password string, prof
provider.entries[id] = &MemberEntry{ provider.entries[id] = &MemberEntry{
// TODO: Use hash function. // TODO: Use hash function.
Password: password, Password: password,
Profile: profile, Profile: profile,
} }
return id, nil return id, nil